summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-05-16 12:00:19 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-05-21 15:46:00 +0200
commit035517c997830a3421efc823e5687a3519880c19 (patch)
treee268f94a8c561eaa2a0a84e9a6f677511a9ce9cb /shell
parentd246c53e66b22c7a5b2bb273be5478dba2467357 (diff)
downloadrules-cc-035517c997830a3421efc823e5687a3519880c19.tar.gz
["CC/auto", "config"] also honor shell-toolchain-provided PATH
Diffstat (limited to 'shell')
-rw-r--r--shell/EXPRESSIONS15
1 files changed, 15 insertions, 0 deletions
diff --git a/shell/EXPRESSIONS b/shell/EXPRESSIONS
index 6ab6c7c..722e897 100644
--- a/shell/EXPRESSIONS
+++ b/shell/EXPRESSIONS
@@ -84,4 +84,19 @@
, "body": {"type": "var", "name": "sh"}
}
}
+, "PATH":
+ { "vars": ["fieldname", "defaults-transition"]
+ , "imports": {"list_provider": ["./", "..", "field_list_provider"]}
+ , "expression":
+ { "type": "let*"
+ , "bindings":
+ [ [ "fieldname"
+ , {"type": "var", "name": "fieldname", "default": "defaults"}
+ ]
+ , ["provider", "PATH"]
+ , ["transition", {"type": "var", "name": "defaults-transition"}]
+ ]
+ , "body": {"type": "CALL_EXPRESSION", "name": "list_provider"}
+ }
+ }
}