summaryrefslogtreecommitdiff
path: root/bin/bootstrap.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/bootstrap.py')
-rwxr-xr-xbin/bootstrap.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/bin/bootstrap.py b/bin/bootstrap.py
index e8d938aa..b77b148d 100755
--- a/bin/bootstrap.py
+++ b/bin/bootstrap.py
@@ -59,11 +59,19 @@ if 'SOURCE_DATE_EPOCH' in os.environ:
CONF_STRING = json.dumps(CONF)
AR="ar"
-CC="clang"
-CXX="clang++"
+CC="cc"
+CXX="c++"
CFLAGS = []
CXXFLAGS = []
+if "COMPILER_FAMILY" in CONF:
+ if CONF["COMPILER_FAMILY"] == "gnu":
+ CC="gcc"
+ CXX="g++"
+ elif CONF["COMPILER_FAMILY"] == "clang":
+ CC="clang"
+ CXX="clang++"
+
if "AR" in CONF:
AR=CONF["AR"]
if "CC" in CONF: