From ce8eb79e736b73938efd10fcc7be1db5cbb11676 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Mon, 21 Nov 2022 12:24:38 +0100 Subject: ["@", "ssl", "", "crypto"] default TARGET_ARCH to ARCH In this way, we achieve that the target to be used by targets outside this repository is the same, regardless if an unset TARGET_ARCH is replaced by the value of ARCH. This is an assumption consuming targets (legitimately) make and that was violated if one of those configs is in target-level cache, but not the other. --- etc/import/TARGETS.boringssl | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/etc/import/TARGETS.boringssl b/etc/import/TARGETS.boringssl index 48954ae3..b1e25581 100644 --- a/etc/import/TARGETS.boringssl +++ b/etc/import/TARGETS.boringssl @@ -1,4 +1,21 @@ { "crypto": + { "type": "configure" + , "target": "exported crypto" + , "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 crypto": { "type": "export" , "target": "crypto-lib" , "flexible_config": -- cgit v1.2.3