src.opts.mk: switch LLVM toolchain to opt-out

After PowerPC switched in r356111, the list of targets using LLVM as the
default toolchain is much longer than those not using it.  Switch the
sense of the test to exclude those not using LLVM.

Targets not using LLVM is currently mips, riscv5, and sparc64; work is
in progress to migrate the first two to LLVM.
This commit is contained in:
emaste 2019-12-27 15:47:32 +00:00
parent 21245c19a5
commit f5fc3b97f4

View File

@ -304,9 +304,8 @@ __DEFAULT_NO_OPTIONS+=LLVM_TARGET_BPF
# This means that architectures that have GCC 4.2 as default can not # This means that architectures that have GCC 4.2 as default can not
# build Clang without using an external compiler. # build Clang without using an external compiler.
.if ${COMPILER_FEATURES:Mc++11} && (${__T} == "aarch64" || \ .if ${COMPILER_FEATURES:Mc++11} && (${__TT} != "mips" && \
${__T} == "amd64" || ${__TT} == "arm" || ${__T} == "i386" || \ ${__TT} != "riscv" && ${__TT} != "sparc64")
${__TT} == "powerpc")
# Clang is enabled, and will be installed as the default /usr/bin/cc. # Clang is enabled, and will be installed as the default /usr/bin/cc.
__DEFAULT_YES_OPTIONS+=CLANG CLANG_BOOTSTRAP CLANG_IS_CC LLD __DEFAULT_YES_OPTIONS+=CLANG CLANG_BOOTSTRAP CLANG_IS_CC LLD
__DEFAULT_NO_OPTIONS+=GCC GCC_BOOTSTRAP GNUCXX GPL_DTC __DEFAULT_NO_OPTIONS+=GCC GCC_BOOTSTRAP GNUCXX GPL_DTC