summaryrefslogtreecommitdiff
path: root/transitions/EXPRESSIONS
diff options
context:
space:
mode:
Diffstat (limited to 'transitions/EXPRESSIONS')
-rw-r--r--transitions/EXPRESSIONS25
1 files changed, 17 insertions, 8 deletions
diff --git a/transitions/EXPRESSIONS b/transitions/EXPRESSIONS
index 4fd0d1e..596b20e 100644
--- a/transitions/EXPRESSIONS
+++ b/transitions/EXPRESSIONS
@@ -1,13 +1,22 @@
{ "for host":
- { "vars": ["ARCH", "HOST_ARCH"]
+ { "vars": ["ARCH", "HOST_ARCH", "TARGET_ARCH"]
, "expression":
- { "type": "singleton_map"
- , "key": "TARGET_ARCH"
- , "value":
- { "type": "var"
- , "name": "HOST_ARCH"
- , "default": {"type": "var", "name": "ARCH"}
- }
+ { "type": "let*"
+ , "bindings":
+ [ [ "BUILD_ARCH"
+ , { "type": "var"
+ , "name": "TARGET_ARCH"
+ , "default": {"type": "var", "name": "ARCH"}
+ }
+ ]
+ , [ "TARGET_ARCH"
+ , { "type": "var"
+ , "name": "HOST_ARCH"
+ , "default": {"type": "var", "name": "ARCH"}
+ }
+ ]
+ ]
+ , "body": {"type": "env", "vars": ["BUILD_ARCH", "TARGET_ARCH"]}
}
}
, "target properties":