summaryrefslogtreecommitdiff
path: root/TARGETS
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2022-10-10 13:18:19 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2022-10-10 17:28:26 +0200
commitd0dfeeacba67d34c2adc2a30f44c5db43decf228 (patch)
tree79fd69c09e1867b1379f559fd154b9612fd54231 /TARGETS
parent5c78fb69d906f791803d183c45f89dbb2371c02f (diff)
downloadjustbuild-d0dfeeacba67d34c2adc2a30f44c5db43decf228.tar.gz
Replace CC/configure rule by builtin configure
Diffstat (limited to 'TARGETS')
-rw-r--r--TARGETS55
1 files changed, 39 insertions, 16 deletions
diff --git a/TARGETS b/TARGETS
index 2b67ce19..766aea2b 100644
--- a/TARGETS
+++ b/TARGETS
@@ -21,19 +21,36 @@
]
}
, "just":
- { "type": ["@", "rules", "CC", "configure"]
- , "arguments_config": ["OS", "ARCH", "TARGET_ARCH", "COMPILER_FAMILY"]
- , "os": [{"type": "var", "name": "OS", "default": "linux"}]
- , "arch": [{"type": "var", "name": "ARCH", "default": "x86_64"}]
- , "target_arch":
- [ { "type": "var"
- , "name": "TARGET_ARCH"
- , "default": {"type": "var", "name": "ARCH", "default": "x86_64"}
+ { "type": "configure"
+ , "arguments_config":
+ ["OS", "ARCH", "HOST_ARCH", "TARGET_ARCH", "COMPILER_FAMILY"]
+ , "target": "exported-just"
+ , "config":
+ { "type": "let*"
+ , "bindings":
+ [ ["OS", {"type": "var", "name": "OS", "default": "linux"}]
+ , ["ARCH", {"type": "var", "name": "ARCH", "default": "x86_64"}]
+ , [ "HOST_ARCH"
+ , { "type": "var"
+ , "name": "HOST_ARCH"
+ , "default": {"type": "var", "name": "ARCH"}
+ }
+ ]
+ , [ "TARGET_ARCH"
+ , { "type": "var"
+ , "name": "TARGET_ARCH"
+ , "default": {"type": "var", "name": "ARCH"}
+ }
+ ]
+ , [ "COMPILER_FAMILY"
+ , {"type": "var", "name": "COMPILER_FAMILY", "default": "clang"}
+ ]
+ ]
+ , "body":
+ { "type": "env"
+ , "vars": ["OS", "ARCH", "HOST_ARCH", "TARGET_ARCH", "COMPILER_FAMILY"]
}
- ]
- , "compiler_family":
- [{"type": "var", "name": "COMPILER_FAMILY", "default": "clang"}]
- , "target": ["exported-just"]
+ }
}
, "libgit2":
{ "type": "configure"
@@ -53,11 +70,17 @@
}
}
, "just-ext-hdrs":
- { "type": ["@", "rules", "CC", "configure"]
+ { "type": "configure"
, "arguments_config": ["OS", "ARCH"]
- , "os": [{"type": "var", "name": "OS", "default": "linux"}]
- , "arch": [{"type": "var", "name": "ARCH", "default": "x86_64"}]
- , "target": [["etc/dev", "just-ext-hdrs"]]
+ , "target": ["etc/dev", "just-ext-hdrs"]
+ , "config":
+ { "type": "let*"
+ , "bindings":
+ [ ["OS", {"type": "var", "name": "OS", "default": "linux"}]
+ , ["ARCH", {"type": "var", "name": "ARCH", "default": "x86_64"}]
+ ]
+ , "body": {"type": "env", "vars": ["OS", "ARCH"]}
+ }
}
, "bootstrap-src":
{ "type": "install"