Changeset View
Changeset View
Standalone View
Standalone View
share/mk/src.opts.mk
Show First 20 Lines • Show All 289 Lines • ▼ Show 20 Lines | |||||
.endif | .endif | ||||
.endfor | .endfor | ||||
__DEFAULT_NO_OPTIONS+=LLVM_TARGET_BPF | __DEFAULT_NO_OPTIONS+=LLVM_TARGET_BPF | ||||
.include <bsd.compiler.mk> | .include <bsd.compiler.mk> | ||||
# If the compiler is not C++11 capable, disable Clang. External toolchain will | # If the compiler is not C++11 capable, disable Clang. External toolchain will | ||||
# be required. | # be required. | ||||
.if ${COMPILER_FEATURES:Mc++11} && (${__TT} != "mips" && ${__TT} != "sparc64") | .if ${COMPILER_FEATURES:Mc++11} && (${__T} != "mipsn32" && ${__TT} != "sparc64") | ||||
# 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 | ||||
emaste: With sparc64 out of the tree `CLANG` is always yes and only `CLANG_BOOTSTRAP` and `CLANG_IS_CC`… | |||||
.elif ${COMPILER_FEATURES:Mc++11} && ${__T} != "sparc64" | .elif ${COMPILER_FEATURES:Mc++11} && ${__T} != "sparc64" | ||||
# If an external compiler that supports C++11 is used as ${CC} and Clang | # If an external compiler that supports C++11 is used as ${CC} and Clang | ||||
# supports the target, then Clang is enabled but we still require an external | # supports the target, then Clang is enabled but we still require an external | ||||
# toolchain. | # toolchain. | ||||
# default /usr/bin/cc. | # default /usr/bin/cc. | ||||
__DEFAULT_YES_OPTIONS+=CLANG LLD | __DEFAULT_YES_OPTIONS+=CLANG LLD | ||||
__DEFAULT_NO_OPTIONS+=CLANG_BOOTSTRAP CLANG_IS_CC | __DEFAULT_NO_OPTIONS+=CLANG_BOOTSTRAP CLANG_IS_CC | ||||
.else | .else | ||||
# Everything else disables Clang, and uses GCC instead. | # Everything else disables Clang, and uses GCC instead. | ||||
__DEFAULT_NO_OPTIONS+=CLANG CLANG_BOOTSTRAP CLANG_IS_CC LLD | __DEFAULT_NO_OPTIONS+=CLANG CLANG_BOOTSTRAP CLANG_IS_CC LLD | ||||
.endif | .endif | ||||
Not Done Inline ActionsYou can move these to the main _DEFAULT_YES_OPTIONS block above. emaste: You can move these to the main `_DEFAULT_YES_OPTIONS` block above. | |||||
# In-tree binutils/gcc are older versions without modern architecture support. | # In-tree binutils/gcc are older versions without modern architecture support. | ||||
.if ${__T} == "aarch64" || ${__T:Mriscv*} != "" | .if ${__T} == "aarch64" || ${__T:Mriscv*} != "" | ||||
BROKEN_OPTIONS+=BINUTILS BINUTILS_BOOTSTRAP GCC GCC_BOOTSTRAP GDB | BROKEN_OPTIONS+=BINUTILS BINUTILS_BOOTSTRAP GCC GCC_BOOTSTRAP GDB | ||||
.endif | .endif | ||||
.if ${__T:Mriscv*} != "" | .if ${__T:Mriscv*} != "" | ||||
BROKEN_OPTIONS+=OFED | BROKEN_OPTIONS+=OFED | ||||
.endif | .endif | ||||
.if ${__TT} != "mips" && ${__T} != "powerpc" && ${__T} != "powerpcspe" && \ | .if ${__T} != "mipsn32" && ${__T} != "powerpc" && ${__T} != "powerpcspe" && \ | ||||
${__T} != "sparc64" | ${__T} != "sparc64" | ||||
__DEFAULT_YES_OPTIONS+=LLD_BOOTSTRAP LLD_IS_LD | __DEFAULT_YES_OPTIONS+=LLD_BOOTSTRAP LLD_IS_LD | ||||
.else | .else | ||||
__DEFAULT_NO_OPTIONS+=LLD_BOOTSTRAP LLD_IS_LD | __DEFAULT_NO_OPTIONS+=LLD_BOOTSTRAP LLD_IS_LD | ||||
.endif | .endif | ||||
.if ${__T} == "aarch64" || ${__T} == "amd64" || ${__T} == "i386" | .if ${__T} == "aarch64" || ${__T} == "amd64" || ${__T} == "i386" | ||||
__DEFAULT_YES_OPTIONS+=LLDB | __DEFAULT_YES_OPTIONS+=LLDB | ||||
.else | .else | ||||
▲ Show 20 Lines • Show All 271 Lines • Show Last 20 Lines |
With sparc64 out of the tree CLANG is always yes and only CLANG_BOOTSTRAP and CLANG_IS_CC remain here.