summaryrefslogtreecommitdiff
path: root/CC/proto
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2023-05-30 14:54:36 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2023-05-30 15:01:40 +0200
commit30fdf0f3ebf0871bffd083939bcf446d7956b0ed (patch)
tree4de92b682c76376a6db5812607169099132d7bcf /CC/proto
parentb2366908835cda4817196f554ba4c8bfa55a3719 (diff)
downloadrules-cc-30fdf0f3ebf0871bffd083939bcf446d7956b0ed.tar.gz
rules: Drop needless conditional
Diffstat (limited to 'CC/proto')
-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"