From 075a1914dd6a77d824b47149b54bf4b4f259d516 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Tue, 30 May 2023 14:54:55 +0200 Subject: rules-cc: Drop needless conditional --- CC/proto/EXPRESSIONS | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'CC') 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" -- cgit v1.2.3