diff options
Diffstat (limited to 'bin/bootstrap.py')
-rwxr-xr-x | bin/bootstrap.py | 5 |
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]) |