From 403cbe4c997dde4fa492b959ba957f1a73223e7b Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Mon, 21 Nov 2022 12:32:09 +0100 Subject: ["@", "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. --- etc/import/TARGETS.zlib | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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": -- cgit v1.2.3