svn commit: r356124 - head/share/mk

Ed Maste emaste at FreeBSD.org
Fri Dec 27 15:47:33 UTC 2019


Author: emaste
Date: Fri Dec 27 15:47:32 2019
New Revision: 356124
URL: https://svnweb.freebsd.org/changeset/base/356124

Log:
  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.

Modified:
  head/share/mk/src.opts.mk

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


More information about the svn-src-head mailing list