summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2023-04-11 16:49:59 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2023-04-18 12:44:10 +0200
commitd62287e08f4cb872bf4959308d453929845c1779 (patch)
treea0468573ea4d3e40069ece32c243f8eade221368 /bin
parent86c4f21cc7dfea03da9a144c94a2028e0b764994 (diff)
downloadjustbuild-d62287e08f4cb872bf4959308d453929845c1779.tar.gz
bootstrap: Use generic toolchain and honor COMPILER_FAMILY
Diffstat (limited to 'bin')
-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: