summaryrefslogtreecommitdiff
path: root/etc/toolchain/CC/TARGETS
diff options
context:
space:
mode:
Diffstat (limited to 'etc/toolchain/CC/TARGETS')
-rw-r--r--etc/toolchain/CC/TARGETS14
1 files changed, 11 insertions, 3 deletions
diff --git a/etc/toolchain/CC/TARGETS b/etc/toolchain/CC/TARGETS
index 3ad0ef3d..e5e5351c 100644
--- a/etc/toolchain/CC/TARGETS
+++ b/etc/toolchain/CC/TARGETS
@@ -1,6 +1,6 @@
{ "defaults":
{ "type": ["CC", "defaults"]
- , "arguments_config": ["OS", "ARCH", "COMPILER_FAMILY"]
+ , "arguments_config": ["OS", "ARCH", "TOOLCHAIN_CONFIG"]
, "base":
{ "type": "let*"
, "bindings":
@@ -11,7 +11,15 @@
, "$1":
[{"type": "var", "name": "OS"}, {"type": "var", "name": "ARCH"}]
}
- , "then": {"type": "var", "name": "COMPILER_FAMILY"}
+ , "then":
+ { "type": "lookup"
+ , "map":
+ { "type": "var"
+ , "name": "TOOLCHAIN_CONFIG"
+ , "default": {"type": "empty_map"}
+ }
+ , "key": "FAMILY"
+ }
, "else": "unknown"
}
]
@@ -24,7 +32,7 @@
, "default":
{ "type": "fail"
, "msg":
- [ "Unsupported COMPILER_FAMILY"
+ [ "Unsupported TOOLCHAIN_CONFIG[FAMILY]"
, {"type": "var", "name": "COMPILER_FAMILY"}
]
}