summaryrefslogtreecommitdiff
path: root/bin/bootstrap.py
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2022-10-31 12:18:51 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2022-10-31 13:18:57 +0100
commit5afb9345f74a41dbdd96953602c1b2f6941dee83 (patch)
treecdadce600f2af900334f8e38ecdfa514376b59aa /bin/bootstrap.py
parent550284a659ce8d08d02fe8f836f7b96bbf7b2c71 (diff)
downloadjustbuild-5afb9345f74a41dbdd96953602c1b2f6941dee83.tar.gz
bootstrap: allow overwriting of ar
... in the same way, as we support different names for cc and c++.
Diffstat (limited to 'bin/bootstrap.py')
-rwxr-xr-xbin/bootstrap.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/bootstrap.py b/bin/bootstrap.py
index 5fbf6a23..dcbd8586 100755
--- a/bin/bootstrap.py
+++ b/bin/bootstrap.py
@@ -58,9 +58,12 @@ if 'SOURCE_DATE_EPOCH' in os.environ:
CONF_STRING = json.dumps(CONF)
+AR="ar"
CC="clang"
CXX="clang++"
+if "AR" in CONF:
+ AR=CONF["AR"]
if "CC" in CONF:
CC=CONF["CC"]
if "CXX" in CONF:
@@ -158,7 +161,7 @@ def setup_deps(src_wrkdir):
os.symlink(os.path.normpath(include_dir),
os.path.join(include_location, include_name))
if "build" in hints:
- run(["sh", "-c", hints["build"].format(cc=CC, cxx=CXX)],
+ run(["sh", "-c", hints["build"].format(cc=CC, cxx=CXX, ar=AR)],
cwd=subdir)
if "link" in hints:
link_flags.extend(["-L", subdir])