diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2023-04-11 16:49:59 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2023-04-18 12:44:10 +0200 |
commit | d62287e08f4cb872bf4959308d453929845c1779 (patch) | |
tree | a0468573ea4d3e40069ece32c243f8eade221368 /bin/bootstrap.py | |
parent | 86c4f21cc7dfea03da9a144c94a2028e0b764994 (diff) | |
download | justbuild-d62287e08f4cb872bf4959308d453929845c1779.tar.gz |
bootstrap: Use generic toolchain and honor COMPILER_FAMILY
Diffstat (limited to 'bin/bootstrap.py')
-rwxr-xr-x | bin/bootstrap.py | 12 |
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: |