Changeset View
Changeset View
Standalone View
Standalone View
share/mk/src.opts.mk
Show First 20 Lines • Show All 215 Lines • ▼ Show 20 Lines | |||||
.endif | .endif | ||||
.include <bsd.compiler.mk> | .include <bsd.compiler.mk> | ||||
# If the compiler is not C++11 capable, disable Clang and use GCC instead. | # If the compiler is not C++11 capable, disable Clang and use GCC instead. | ||||
# 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} && (${__T} == "aarch64" || \ | ||||
${__T} == "amd64" || ${__TT} == "arm" || ${__T} == "i386") | ${__T} == "amd64" || ${__TT} == "arm" || ${__T} == "i386" || \ | ||||
${__T} == "mips64") | |||||
emaste: FYI in the clang400-import branch I've turned on Clang by default everywhere when the host… | |||||
# 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_FULL CLANG_IS_CC | __DEFAULT_YES_OPTIONS+=CLANG CLANG_BOOTSTRAP CLANG_FULL CLANG_IS_CC | ||||
__DEFAULT_NO_OPTIONS+=GCC GCC_BOOTSTRAP GNUCXX | __DEFAULT_NO_OPTIONS+=GCC GCC_BOOTSTRAP GNUCXX | ||||
.elif ${COMPILER_FEATURES:Mc++11} && ${__T:Mpowerpc*} | .elif ${COMPILER_FEATURES:Mc++11} && ${__T:Mpowerpc*} | ||||
# On powerpc, if an external compiler that supports C++11 is used as ${CC}, | # On powerpc, if an external compiler that supports C++11 is used as ${CC}, | ||||
# then Clang is enabled, but GCC is installed as the default /usr/bin/cc. | # then Clang is enabled, but GCC is installed as the default /usr/bin/cc. | ||||
__DEFAULT_YES_OPTIONS+=CLANG CLANG_FULL GCC GCC_BOOTSTRAP GNUCXX | __DEFAULT_YES_OPTIONS+=CLANG CLANG_FULL GCC GCC_BOOTSTRAP GNUCXX | ||||
__DEFAULT_NO_OPTIONS+=CLANG_BOOTSTRAP CLANG_IS_CC | __DEFAULT_NO_OPTIONS+=CLANG_BOOTSTRAP CLANG_IS_CC | ||||
▲ Show 20 Lines • Show All 228 Lines • Show Last 20 Lines |
FYI in the clang400-import branch I've turned on Clang by default everywhere when the host compiler is C++11 ( rS312776), although it's still not /usr/bin/cc on MIPS.