summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2023-05-30 14:54:55 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2023-05-30 15:33:18 +0200
commit075a1914dd6a77d824b47149b54bf4b4f259d516 (patch)
treeeb59e9158f9c7fce95a2148dd715a1021c7ad176
parentdb9ae6e0367c5dac8b0d37da00fe217e6b203af1 (diff)
downloadrules-cc-075a1914dd6a77d824b47149b54bf4b4f259d516.tar.gz
rules-cc: Drop needless conditional
-rw-r--r--CC/proto/EXPRESSIONS11
1 files changed, 3 insertions, 8 deletions
diff --git a/CC/proto/EXPRESSIONS b/CC/proto/EXPRESSIONS
index 894b80b..6be74df 100644
--- a/CC/proto/EXPRESSIONS
+++ b/CC/proto/EXPRESSIONS
@@ -138,14 +138,9 @@
, ["TOOLCHAIN_DIR", "toolchain"]
, ["TOOLCHAIN", {"type": "CALL_EXPRESSION", "name": "default-TOOLCHAIN"}]
, [ "TOOLCHAIN"
- , { "type": "if"
- , "cond": {"type": "var", "name": "TOOLCHAIN"}
- , "then":
- { "type": "to_subdir"
- , "subdir": {"type": "var", "name": "TOOLCHAIN_DIR"}
- , "$1": {"type": "var", "name": "TOOLCHAIN"}
- }
- , "else": {"type": "empty_map"}
+ , { "type": "to_subdir"
+ , "subdir": {"type": "var", "name": "TOOLCHAIN_DIR"}
+ , "$1": {"type": "var", "name": "TOOLCHAIN"}
}
]
, [ "NON_SYSTEM_TOOLS"