summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2022-11-21 12:24:38 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2022-11-21 12:42:45 +0100
commitce8eb79e736b73938efd10fcc7be1db5cbb11676 (patch)
tree34d202f76c476d29bd23859acff4b92583dc0af0
parent2db34c397423d60b6b8c7131c954f5ae0699cad8 (diff)
downloadjustbuild-ce8eb79e736b73938efd10fcc7be1db5cbb11676.tar.gz
["@", "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.
-rw-r--r--etc/import/TARGETS.boringssl17
1 files changed, 17 insertions, 0 deletions
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":