diff options
Diffstat (limited to 'etc/defaults')
-rw-r--r-- | etc/defaults/CC/TARGETS.curl | 18 | ||||
-rw-r--r-- | etc/defaults/CC/TARGETS.protobuf | 7 |
2 files changed, 24 insertions, 1 deletions
diff --git a/etc/defaults/CC/TARGETS.curl b/etc/defaults/CC/TARGETS.curl index 1bf560d1..233c3b6f 100644 --- a/etc/defaults/CC/TARGETS.curl +++ b/etc/defaults/CC/TARGETS.curl @@ -1,6 +1,7 @@ { "defaults": { "type": ["CC", "defaults"] - , "arguments_config": ["COMPILER_FAMILY", "CURL_ENABLE_SSL"] + , "arguments_config": + ["COMPILER_FAMILY", "CURL_ENABLE_SSL", "ARCH", "TARGET_ARCH"] , "base": [["@", "base", "CC", "defaults"]] , "ADD_CFLAGS": { "type": "let*" @@ -11,6 +12,17 @@ , [ "CURL_ENABLE_SSL" , {"type": "var", "name": "CURL_ENABLE_SSL", "default": true} ] + , [ "TARGET_ARCH" + , { "type": "var" + , "name": "TARGET_ARCH" + , "default": + { "type": "var" + , "name": "ARCH" + , "default": + {"type": "fail", "msg": "Required variable 'ARCH' is not set."} + } + } + ] ] , "body": { "type": "++" @@ -50,6 +62,10 @@ } } } + , { "type": "case" + , "expr": {"type": "var", "name": "TARGET_ARCH"} + , "case": {"arm": ["-Wno-atomic-alignment"]} + } ] } } diff --git a/etc/defaults/CC/TARGETS.protobuf b/etc/defaults/CC/TARGETS.protobuf index 631eb670..ed80cbdd 100644 --- a/etc/defaults/CC/TARGETS.protobuf +++ b/etc/defaults/CC/TARGETS.protobuf @@ -33,6 +33,13 @@ , "/wd4800" , "/wd4996" ] + , "gnu": + [ "-Wall" + , "-Wno-sign-compare" + , "-Wno-sign-conversion" + , "-Wno-unused-function" + , "-Wno-deprecated-declarations" + ] } , "default": [ "-Wall" |