diff options
Diffstat (limited to 'etc/defaults/CC/TARGETS.absl')
-rw-r--r-- | etc/defaults/CC/TARGETS.absl | 200 |
1 files changed, 72 insertions, 128 deletions
diff --git a/etc/defaults/CC/TARGETS.absl b/etc/defaults/CC/TARGETS.absl index 22529fe4..7985d990 100644 --- a/etc/defaults/CC/TARGETS.absl +++ b/etc/defaults/CC/TARGETS.absl @@ -1,7 +1,6 @@ { "defaults": { "type": ["CC", "defaults"] - , "arguments_config": - ["COMPILER_FAMILY", "OS", "ARCH", "TARGET_ARCH", "ABSL_RANDOM_HWAES"] + , "arguments_config": ["COMPILER_FAMILY", "OS", "ARCH", "TARGET_ARCH"] , "base": [["@", "base", "CC", "defaults"]] , "ADD_CXXFLAGS": { "type": "let*" @@ -35,13 +34,25 @@ , { "type": "case" , "expr": {"type": "var", "name": "COMPILER_FAMILY"} , "case": - { "msvc": + { "gnu": + [ "-Wall" + , "-Wextra" + , "-Wcast-qual" + , "-Wconversion-null" + , "-Wformat-security" + , "-Wmissing-declarations" + , "-Woverlength-strings" + , "-Wpointer-arith" + , "-Wundef" + , "-Wunused-local-typedefs" + , "-Wunused-result" + , "-Wvarargs" + , "-Wvla" + , "-Wwrite-strings" + , "-DNOMINMAX" + ] + , "msvc": [ "/W3" - , "/DNOMINMAX" - , "/DWIN32_LEAN_AND_MEAN" - , "/D_CRT_SECURE_NO_WARNINGS" - , "/D_SCL_SECURE_NO_WARNINGS" - , "/D_ENABLE_EXTENDED_ALIGNED_STORAGE" , "/bigobj" , "/wd4005" , "/wd4068" @@ -50,144 +61,77 @@ , "/wd4267" , "/wd4503" , "/wd4800" + , "/DNOMINMAX" + , "/DWIN32_LEAN_AND_MEAN" + , "/D_CRT_SECURE_NO_WARNINGS" + , "/D_SCL_SECURE_NO_WARNINGS" + , "/D_ENABLE_EXTENDED_ALIGNED_STORAGE" + , "-ignore:4221" + ] + , "clang-cl": + [ "/W3" + , "/DNOMINMAX" + , "/DWIN32_LEAN_AND_MEAN" + , "/D_CRT_SECURE_NO_WARNINGS" + , "/D_SCL_SECURE_NO_WARNINGS" + , "/D_ENABLE_EXTENDED_ALIGNED_STORAGE" ] , "clang": - { "type": "case" - , "expr": {"type": "var", "name": "OS"} - , "case": - { "windows": - [ "/W3" - , "-Wno-c++98-compat-pedantic" - , "-Wno-conversion" - , "-Wno-covered-switch-default" - , "-Wno-deprecated" - , "-Wno-disabled-macro-expansion" - , "-Wno-double-promotion" - , "-Wno-comma" - , "-Wno-extra-semi" - , "-Wno-extra-semi-stmt" - , "-Wno-packed" - , "-Wno-padded" - , "-Wno-sign-compare" - , "-Wno-float-conversion" - , "-Wno-float-equal" - , "-Wno-format-nonliteral" - , "-Wno-gcc-compat" - , "-Wno-global-constructors" - , "-Wno-exit-time-destructors" - , "-Wno-non-modular-include-in-module" - , "-Wno-old-style-cast" - , "-Wno-range-loop-analysis" - , "-Wno-reserved-id-macro" - , "-Wno-shorten-64-to-32" - , "-Wno-switch-enum" - , "-Wno-thread-safety-negative" - , "-Wno-unknown-warning-option" - , "-Wno-unreachable-code" - , "-Wno-unused-macros" - , "-Wno-weak-vtables" - , "-Wno-zero-as-null-pointer-constant" - , "-Wbitfield-enum-conversion" - , "-Wbool-conversion" - , "-Wconstant-conversion" - , "-Wenum-conversion" - , "-Wint-conversion" - , "-Wliteral-conversion" - , "-Wnon-literal-null-conversion" - , "-Wnull-conversion" - , "-Wobjc-literal-conversion" - , "-Wno-sign-conversion" - , "-Wstring-conversion" - , "/DNOMINMAX" - , "/DWIN32_LEAN_AND_MEAN" - , "/D_CRT_SECURE_NO_WARNINGS" - , "/D_SCL_SECURE_NO_WARNINGS" - , "/D_ENABLE_EXTENDED_ALIGNED_STORAGE" - ] - } - , "default": - [ "-Wall" - , "-Wextra" - , "-Weverything" - , "-Wno-c++98-compat-pedantic" - , "-Wno-conversion" - , "-Wno-covered-switch-default" - , "-Wno-deprecated" - , "-Wno-disabled-macro-expansion" - , "-Wno-double-promotion" - , "-Wno-comma" - , "-Wno-extra-semi" - , "-Wno-extra-semi-stmt" - , "-Wno-packed" - , "-Wno-padded" - , "-Wno-sign-compare" - , "-Wno-float-conversion" - , "-Wno-float-equal" - , "-Wno-format-nonliteral" - , "-Wno-gcc-compat" - , "-Wno-global-constructors" - , "-Wno-exit-time-destructors" - , "-Wno-non-modular-include-in-module" - , "-Wno-old-style-cast" - , "-Wno-range-loop-analysis" - , "-Wno-reserved-id-macro" - , "-Wno-shorten-64-to-32" - , "-Wno-switch-enum" - , "-Wno-thread-safety-negative" - , "-Wno-unknown-warning-option" - , "-Wno-unreachable-code" - , "-Wno-unused-macros" - , "-Wno-weak-vtables" - , "-Wno-zero-as-null-pointer-constant" - , "-Wbitfield-enum-conversion" - , "-Wbool-conversion" - , "-Wconstant-conversion" - , "-Wenum-conversion" - , "-Wint-conversion" - , "-Wliteral-conversion" - , "-Wnon-literal-null-conversion" - , "-Wnull-conversion" - , "-Wobjc-literal-conversion" - , "-Wno-sign-conversion" - , "-Wstring-conversion" - ] - } + [ "-Wall" + , "-Wextra" + , "-Wcast-qual" + , "-Wconversion" + , "-Wfloat-overflow-conversion" + , "-Wfloat-zero-conversion" + , "-Wfor-loop-analysis" + , "-Wformat-security" + , "-Wgnu-redeclared-enum" + , "-Winfinite-recursion" + , "-Winvalid-constexpr" + , "-Wliteral-conversion" + , "-Wmissing-declarations" + , "-Woverlength-strings" + , "-Wpointer-arith" + , "-Wself-assign" + , "-Wshadow-all" + , "-Wshorten-64-to-32" + , "-Wsign-conversion" + , "-Wstring-conversion" + , "-Wtautological-overlap-compare" + , "-Wtautological-unsigned-zero-compare" + , "-Wundef" + , "-Wuninitialized" + , "-Wunreachable-code" + , "-Wunused-comparison" + , "-Wunused-local-typedefs" + , "-Wunused-result" + , "-Wvla" + , "-Wwrite-strings" + , "-Wno-float-conversion" + , "-Wno-implicit-float-conversion" + , "-Wno-implicit-int-float-conversion" + , "-Wno-unknown-warning-option" + , "-DNOMINMAX" + ] } , "default": [ "-Wall" , "-Wextra" , "-Wcast-qual" , "-Wconversion-null" + , "-Wformat-security" , "-Wmissing-declarations" , "-Woverlength-strings" , "-Wpointer-arith" + , "-Wundef" , "-Wunused-local-typedefs" , "-Wunused-result" , "-Wvarargs" , "-Wvla" , "-Wwrite-strings" - , "-Wno-missing-field-initializers" - , "-Wno-sign-compare" - , "-Wno-deprecated-anon-enum-enum-conversion" + , "-DNOMINMAX" ] } - , { "type": "if" - , "cond": {"type": "var", "name": "ABSL_RANDOM_HWAES"} - , "then": - { "type": "case" - , "expr": {"type": "var", "name": "TARGET_ARCH"} - , "case": - { "arm": ["-mfpu=neon"] - , "arm64": ["-march=armv8-a+crypto"] - , "x86_64": - { "type": "case" - , "expr": {"type": "var", "name": "COMPILER_FAMILY"} - , "case": {"msvc": []} - , "default": ["-maes", "-msse4.1"] - } - } - } - } ] } } |