diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2023-08-16 15:38:38 +0200 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2023-08-16 15:38:38 +0200 |
commit | 22a280141becf3e41652368794b2a815390c7472 (patch) | |
tree | d423afe5535bf9262725e6a2488ba18e37dbd615 /rules/transitions/EXPRESSIONS | |
parent | cdca4eff0264795d4c36fcb89aaf174a2a4151bd (diff) | |
parent | 54bb2a33b3e36123f8f411f77ec8e76f5b021e3d (diff) | |
download | rules-cc-22a280141becf3e41652368794b2a815390c7472.tar.gz |
Merge commit '54bb2a33b3e36123f8f411f77ec8e76f5b021e3d' into rules/rules-cc
Diffstat (limited to 'rules/transitions/EXPRESSIONS')
-rw-r--r-- | rules/transitions/EXPRESSIONS | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/rules/transitions/EXPRESSIONS b/rules/transitions/EXPRESSIONS index db401a0..fef8542 100644 --- a/rules/transitions/EXPRESSIONS +++ b/rules/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": |