summaryrefslogtreecommitdiff
path: root/etc/defaults
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2022-09-15 10:27:57 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2022-09-16 10:47:43 +0200
commitb1c9c5146c017f9286ed01b562a043991e13be15 (patch)
tree3536775bc099ed65ce9b11a2306015ee71becf8a /etc/defaults
parent647562f419f97902d28f5dd710718c421e0c88fd (diff)
downloadjustbuild-b1c9c5146c017f9286ed01b562a043991e13be15.tar.gz
libgit2: Precisely replicate original flags
Diffstat (limited to 'etc/defaults')
-rw-r--r--etc/defaults/CC/TARGETS.git217
1 files changed, 8 insertions, 9 deletions
diff --git a/etc/defaults/CC/TARGETS.git2 b/etc/defaults/CC/TARGETS.git2
index 4326ce62..c0ad8ba6 100644
--- a/etc/defaults/CC/TARGETS.git2
+++ b/etc/defaults/CC/TARGETS.git2
@@ -32,7 +32,8 @@
, "default":
{ "type": "++"
, "$1":
- [ { "type": "case"
+ [ ["-std=gnu90", "-D_GNU_SOURCE", "-Wall", "-Wextra"]
+ , { "type": "case"
, "expr": {"type": "var", "name": "OS"}
, "case":
{ "sunos":
@@ -47,10 +48,11 @@
]
}
}
- , [ "-D_GNU_SOURCE"
- , "-Wall"
- , "-Wextra"
- , "-Wno-documentation-deprecated-sync"
+ , { "type": "case"
+ , "expr": {"type": "var", "name": "COMPILER_FAMILY"}
+ , "case": {"clang": ["-Wdocumentation"]}
+ }
+ , [ "-Wno-documentation-deprecated-sync"
, "-Wno-missing-field-initializers"
, "-Wstrict-aliasing"
, "-Wstrict-prototypes"
@@ -61,11 +63,8 @@
, "-Wint-conversion"
, "-Wformat"
, "-Wformat-security"
+ , "-Wmissing-declarations"
]
- , { "type": "case"
- , "expr": {"type": "var", "name": "COMPILER_FAMILY"}
- , "case": {"clang": ["-Wdocumentation"]}
- }
]
}
}