diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2023-08-30 19:05:18 +0200 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2023-08-30 19:05:18 +0200 |
commit | abd0e85b113293b8d7c11c9a2697d77d5fbbac93 (patch) | |
tree | 850b6f974bb5b6c9961f23d9f7bb2fe34759db7e /rules/CC/foreign/shell/RULES | |
parent | d501d86b5e974523e965d52001a5c185ce47be92 (diff) | |
parent | 4118e0b9930d11f6062751db4f1656e8cc2a680a (diff) | |
download | rules-cc-abd0e85b113293b8d7c11c9a2697d77d5fbbac93.tar.gz |
Merge subtree 'rules' into rules-cc
Diffstat (limited to 'rules/CC/foreign/shell/RULES')
-rw-r--r-- | rules/CC/foreign/shell/RULES | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/rules/CC/foreign/shell/RULES b/rules/CC/foreign/shell/RULES index fc682d5..ffffc26 100644 --- a/rules/CC/foreign/shell/RULES +++ b/rules/CC/foreign/shell/RULES @@ -29,6 +29,7 @@ , "implicit": { "defaults": [["CC", "defaults"]] , "foreign-defaults": [["CC/foreign", "defaults"]] + , "expand_exec": [["./", "..", "expand_exec"]] } , "field_doc": { "project": @@ -110,8 +111,15 @@ } , "imports": { "artifacts": ["", "field_artifacts"] + , "stage_field": ["", "stage_singleton_field"] , "shell-build": "shell-build" , "install-deps": ["CC", "install-with-deps stage"] + , "for host": ["transitions", "for host"] + } + , "config_transitions": + { "defaults": + [{"type": "empty_map"}, {"type": "CALL_EXPRESSION", "name": "for host"}] + , "expand_exec": [{"type": "CALL_EXPRESSION", "name": "for host"}] } , "expression": { "type": "let*" @@ -143,6 +151,16 @@ ] , ["outs", {"type": "FIELD", "name": "outs"}] , ["out_dirs", {"type": "FIELD", "name": "out_dirs"}] + , [ "expand_exec" + , { "type": "let*" + , "bindings": + [ ["fieldname", "expand_exec"] + , ["location", "expand_exec"] + , ["transition", {"type": "CALL_EXPRESSION", "name": "for host"}] + ] + , "body": {"type": "CALL_EXPRESSION", "name": "stage_field"} + } + ] ] , "body": { "type": "RESULT" |