summaryrefslogtreecommitdiff
path: root/bin/bootstrap.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/bootstrap.py')
-rwxr-xr-xbin/bootstrap.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/bin/bootstrap.py b/bin/bootstrap.py
index 41b91e49..49dd5c88 100755
--- a/bin/bootstrap.py
+++ b/bin/bootstrap.py
@@ -59,6 +59,14 @@ if 'SOURCE_DATE_EPOCH' in os.environ:
CONF_STRING = json.dumps(CONF)
+CC="clang"
+CXX="clang++"
+
+if "CC" in CONF:
+ CC=CONF["CC"]
+if "CXX" in CONF:
+ CXX=CONF["CXX"]
+
# relevant directories (global variables)
SRCDIR = os.getcwd()
@@ -149,7 +157,8 @@ 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"]], cwd=subdir)
+ run(["sh", "-c", hints["build"].format(cc=CC, cxx=CXX)],
+ cwd=subdir)
if "link" in hints:
link_flags.extend(["-L", subdir])
if "link" in hints: