diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2022-11-21 12:32:09 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2022-11-21 12:42:45 +0100 |
commit | 403cbe4c997dde4fa492b959ba957f1a73223e7b (patch) | |
tree | 43325b4bfae4fcfc54a91446dbccda35227302fb | |
parent | ce8eb79e736b73938efd10fcc7be1db5cbb11676 (diff) | |
download | justbuild-403cbe4c997dde4fa492b959ba957f1a73223e7b.tar.gz |
["@", "zlib", "", "zlib"]: let "TARGET_ARCH" default to "ARCH"
And in this way avoid that two configuration differing only in an
unset TARGET_ARCH set to ARCH can be different due to one configration
being in target-level cache, but not the other.
-rw-r--r-- | etc/import/TARGETS.zlib | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/etc/import/TARGETS.zlib b/etc/import/TARGETS.zlib index a74e5103..0078b9da 100644 --- a/etc/import/TARGETS.zlib +++ b/etc/import/TARGETS.zlib @@ -1,4 +1,21 @@ { "zlib": + { "type": "configure" + , "target": "exported zlib" + , "arguments_config": ["ARCH", "TARGET_ARCH"] + , "config": + { "type": "let*" + , "bindings": + [ [ "TARGET_ARCH" + , { "type": "var" + , "name": "TARGET_ARCH" + , "default": {"type": "var", "name": "ARCH"} + } + ] + ] + , "body": {"type": "env", "vars": ["TARGET_ARCH"]} + } + } +, "exported zlib": { "type": "export" , "target": "zlibinternal" , "flexible_config": |