Changeset View
Changeset View
Standalone View
Standalone View
head/share/mk/src.opts.mk
Show First 20 Lines • Show All 289 Lines • ▼ Show 20 Lines | |||||
.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" && \ | .if ${COMPILER_FEATURES:Mc++11} && (${__TT} != "mips" && ${__TT} != "sparc64") | ||||
${__TT} != "riscv" && ${__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 | ||||
.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 | ||||
Show All 10 Lines | |||||
BROKEN_OPTIONS+=OFED | BROKEN_OPTIONS+=OFED | ||||
.endif | .endif | ||||
.if ${__T} != "sparc64" | .if ${__T} != "sparc64" | ||||
__DEFAULT_YES_OPTIONS+=LLVM_LIBUNWIND | __DEFAULT_YES_OPTIONS+=LLVM_LIBUNWIND | ||||
.else | .else | ||||
__DEFAULT_NO_OPTIONS+=LLVM_LIBUNWIND | __DEFAULT_NO_OPTIONS+=LLVM_LIBUNWIND | ||||
.endif | .endif | ||||
.if ${__TT} != "mips" && ${__T} != "powerpc" && ${__T} != "powerpcspe" && \ | .if ${__TT} != "mips" && ${__T} != "powerpc" && ${__T} != "powerpcspe" && \ | ||||
${__TT} != "riscv" && ${__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 | ||||
__DEFAULT_NO_OPTIONS+=LLDB | __DEFAULT_NO_OPTIONS+=LLDB | ||||
▲ Show 20 Lines • Show All 268 Lines • Show Last 20 Lines |