From d62287e08f4cb872bf4959308d453929845c1779 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Tue, 11 Apr 2023 16:49:59 +0200 Subject: bootstrap: Use generic toolchain and honor COMPILER_FAMILY --- bin/bootstrap.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'bin/bootstrap.py') 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: -- cgit v1.2.3