summaryrefslogtreecommitdiff
path: root/rules/CC/foreign/shell/RULES
diff options
context:
space:
mode:
Diffstat (limited to 'rules/CC/foreign/shell/RULES')
-rw-r--r--rules/CC/foreign/shell/RULES18
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"