diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2023-05-30 14:54:36 +0200 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2023-05-30 15:01:40 +0200 |
commit | 30fdf0f3ebf0871bffd083939bcf446d7956b0ed (patch) | |
tree | 4de92b682c76376a6db5812607169099132d7bcf /CC/proto | |
parent | b2366908835cda4817196f554ba4c8bfa55a3719 (diff) | |
download | rules-cc-30fdf0f3ebf0871bffd083939bcf446d7956b0ed.tar.gz |
rules: Drop needless conditional
Diffstat (limited to 'CC/proto')
-rw-r--r-- | CC/proto/EXPRESSIONS | 11 |
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" |