diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2022-03-03 13:46:12 +0100 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2022-03-03 15:09:11 +0100 |
commit | def6a000ee9ad67fcfa00e710b7a4e6091fdc5da (patch) | |
tree | c77d9cce430fc5bfb4ec6b46af023888a9d7e401 | |
parent | a9383a9131c1e2ba2a55f9b44d5756d3322496f4 (diff) | |
download | justbuild-def6a000ee9ad67fcfa00e710b7a4e6091fdc5da.tar.gz |
External libgit2: Disable warnings
-rw-r--r-- | etc/defaults/CC/TARGETS.git2 | 58 | ||||
-rw-r--r-- | etc/import/deps/pcre/TARGETS.git2 | 1 | ||||
-rw-r--r-- | etc/import/src/TARGETS.git2 | 20 | ||||
-rw-r--r-- | etc/repos.json | 8 |
4 files changed, 74 insertions, 13 deletions
diff --git a/etc/defaults/CC/TARGETS.git2 b/etc/defaults/CC/TARGETS.git2 new file mode 100644 index 00000000..2efd5574 --- /dev/null +++ b/etc/defaults/CC/TARGETS.git2 @@ -0,0 +1,58 @@ +{ "defaults": + { "type": ["CC", "defaults"] + , "arguments_config": ["OS"] + , "CC": ["clang"] + , "CXX": ["clang++"] + , "CFLAGS": + { "type": "case" + , "expr": {"type": "var", "name": "OS"} + , "case": + { "windows": + [ "-D_SCL_SECURE_NO_WARNINGS" + , "-D_CRT_SECURE_NO_DEPRECATE" + , "-D_CRT_NONSTDC_NO_DEPRECATE" + , "/GF" + , "/MP" + , "/nologo" + ] + } + , "default": + { "type": "++" + , "$1": + [ ["-D_GNU_SOURCE", "-Wall", "-Wextra"] + , { "type": "case" + , "expr": {"type": "var", "name": "OS"} + , "case": + { "sunos": + [ "-D_POSIX_C_SOURCE=200112L" + , "-D__EXTENSIONS__" + , "-D_POSIX_PTHREAD_SEMANTICS" + ] + , "solaris": + [ "-D_POSIX_C_SOURCE=200112L" + , "-D__EXTENSIONS__" + , "-D_POSIX_PTHREAD_SEMANTICS" + ] + } + } + , [ "-Wdocumentation" + , "-Wno-documentation-deprecated-sync" + , "-Wno-missing-field-initializers" + , "-Wstrict-aliasing" + , "-Wstrict-prototypes" + , "-Wdeclaration-after-statement" + , "-Wshift-count-overflow" + , "-Wunused-const-variable" + , "-Wunused-function" + , "-Wint-conversion" + , "-Wformat" + , "-Wformat-security" + ] + ] + } + } + , "CXXFLAGS": [] + , "AR": ["ar"] + , "PATH": ["/bin", "/sbin", "/usr/bin", "/usr/sbin"] + } +} diff --git a/etc/import/deps/pcre/TARGETS.git2 b/etc/import/deps/pcre/TARGETS.git2 index badd2a19..e35f50c3 100644 --- a/etc/import/deps/pcre/TARGETS.git2 +++ b/etc/import/deps/pcre/TARGETS.git2 @@ -242,6 +242,7 @@ } ] } + , "local cflags": ["-Wno-unused-function", "-Wno-implicit-fallthrough"] , "srcs": ["git2_pcre_sources"] , "hdrs": ["git2_pcre_headers"] } diff --git a/etc/import/src/TARGETS.git2 b/etc/import/src/TARGETS.git2 index 44cd7ff5..4d6cb05b 100644 --- a/etc/import/src/TARGETS.git2 +++ b/etc/import/src/TARGETS.git2 @@ -594,18 +594,14 @@ , "name": ["git2"] , "pure C": ["yes"] , "local defines": - { "type": "++" - , "$1": - [ ["HAVE_QSORT_S"] - , { "type": "case" - , "expr": {"type": "var", "name": "OS"} - , "case": - { "linux": ["HAVE_QSORT_R_GNU"] - , "darwin": ["HAVE_QSORT_R_BSD"] - , "bsd": ["HAVE_QSORT_R_BSD"] - } - } - ] + { "type": "case" + , "expr": {"type": "var", "name": "OS"} + , "case": + { "linux": ["HAVE_QSORT_R_GNU"] + , "darwin": ["HAVE_QSORT_R_BSD"] + , "bsd": ["HAVE_QSORT_R_BSD"] + , "windows": ["HAVE_QSORT_S"] + } } , "srcs": [ "alloc.c" diff --git a/etc/repos.json b/etc/repos.json index f5b71582..83154e43 100644 --- a/etc/repos.json +++ b/etc/repos.json @@ -54,6 +54,12 @@ , "rule_root": "rules" , "target_file_name": "TARGETS.re2" } + , "rules-git2": + { "repository": "rules" + , "target_root": "defaults" + , "rule_root": "rules" + , "target_file_name": "TARGETS.git2" + } , "import targets": {"repository": {"type": "file", "path": "etc/import"}} , "gsl-lite": { "repository": @@ -243,7 +249,7 @@ } , "target_root": "import targets" , "target_file_name": "TARGETS.git2" - , "bindings": {"rules": "rules", "zlib": "zlib", "ssl": "ssl"} + , "bindings": {"rules": "rules-git2", "zlib": "zlib", "ssl": "ssl"} } , "catch2": { "repository": |