diff options
Diffstat (limited to 'etc/defaults/CC/TARGETS.curl')
-rw-r--r-- | etc/defaults/CC/TARGETS.curl | 18 |
1 files changed, 17 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"]} + } ] } } |