summaryrefslogtreecommitdiff
path: root/transitions/EXPRESSIONS
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2023-08-16 15:37:21 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2023-08-16 15:37:21 +0200
commitebf3cf04bc80ae7bf083220e63e739bf32151c95 (patch)
tree55528542ed7c08f588ce6ae5389d3c11ca996e19 /transitions/EXPRESSIONS
parent875296f27c7eec053a8b4f348ab6490441ef6454 (diff)
parent2c5e3a6756fc871bbdde8a34d38cda297519b0f9 (diff)
downloadrules-cc-ebf3cf04bc80ae7bf083220e63e739bf32151c95.tar.gz
Merge branch 'rules/oss' into rules/rules-cc-rules
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 db401a0..fef8542 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"]}
}
}
, "with fPIC":