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 | d86acfcf8c6d6650ff79c4d9e7354b06443a26d3 (patch) | |
tree | cc8410ee01b5d592b0ddc3670995e503ddc4957f /rules | |
parent | a457da441220f37874b8eb4c35225e92c2f6a18e (diff) | |
download | justbuild-d86acfcf8c6d6650ff79c4d9e7354b06443a26d3.tar.gz |
rules: Drop needless conditional
Diffstat (limited to 'rules')
-rw-r--r-- | rules/CC/proto/EXPRESSIONS | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/rules/CC/proto/EXPRESSIONS b/rules/CC/proto/EXPRESSIONS index 894b80bc..6be74df9 100644 --- a/rules/CC/proto/EXPRESSIONS +++ b/rules/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" |