From 5803ce704eb9cf9c30235e82856ed738486256e1 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Wed, 6 Nov 2024 10:50:12 +0100 Subject: Prefer built-in "nub_left" Now that justbuild 1.4 is available, the workaround of defining "nub_left" in terms of "reverse" and "nub_right" is no longer necessary. --- CC/foreign/make/EXPRESSIONS | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'CC/foreign/make') diff --git a/CC/foreign/make/EXPRESSIONS b/CC/foreign/make/EXPRESSIONS index 1707104..68aa728 100644 --- a/CC/foreign/make/EXPRESSIONS +++ b/CC/foreign/make/EXPRESSIONS @@ -30,7 +30,6 @@ ] , "imports": { "artifacts": ["", "field_artifacts"] - , "nub_left": ["", "nub_left"] , "flags-cc": ["CC", "flags-cc"] , "flags-cxx": ["CC", "flags-cxx"] , "compiler-cc": ["CC", "compiler-cc"] @@ -205,18 +204,14 @@ , { "type": "join" , "separator": ":" , "$1": - { "type": "let*" - , "bindings": - [ [ "list" - , { "type": "++" - , "$1": - [ {"type": "CALL_EXPRESSION", "name": "foreign-PATH"} - , {"type": "CALL_EXPRESSION", "name": "default-PATH"} - ] - } + { "type": "nub_left" + , "$1": + { "type": "++" + , "$1": + [ {"type": "CALL_EXPRESSION", "name": "foreign-PATH"} + , {"type": "CALL_EXPRESSION", "name": "default-PATH"} ] - ] - , "body": {"type": "CALL_EXPRESSION", "name": "nub_left"} + } } } ] -- cgit v1.2.3