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 /etc/defaults | |
parent | a9383a9131c1e2ba2a55f9b44d5756d3322496f4 (diff) | |
download | justbuild-def6a000ee9ad67fcfa00e710b7a4e6091fdc5da.tar.gz |
External libgit2: Disable warnings
Diffstat (limited to 'etc/defaults')
-rw-r--r-- | etc/defaults/CC/TARGETS.git2 | 58 |
1 files changed, 58 insertions, 0 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"] + } +} |