Changeset View
Changeset View
Standalone View
Standalone View
share/mk/src.opts.mk
Show First 20 Lines • Show All 282 Lines • ▼ Show 20 Lines | |||||
.endif | .endif | ||||
.endfor | .endfor | ||||
# until we can unwind clang + sparc | # until we can unwind clang + sparc | ||||
MK_LLVM_TARGET_SPARC:=no | MK_LLVM_TARGET_SPARC:=no | ||||
__DEFAULT_NO_OPTIONS+=LLVM_TARGET_BPF | __DEFAULT_NO_OPTIONS+=LLVM_TARGET_BPF | ||||
.include <bsd.compiler.mk> | .include <bsd.compiler.mk> | ||||
.if ${__TT} != "mips" | |||||
# Clang is installed as the default /usr/bin/cc. | # Clang is installed as the default /usr/bin/cc. | ||||
emaste: With sparc64 out of the tree `CLANG` is always yes and only `CLANG_BOOTSTRAP` and `CLANG_IS_CC`… | |||||
__DEFAULT_YES_OPTIONS+=CLANG_BOOTSTRAP CLANG_IS_CC | __DEFAULT_YES_OPTIONS+=CLANG_BOOTSTRAP CLANG_IS_CC | ||||
emasteUnsubmitted 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. | |||||
.else | |||||
# Clang is enabled but we still require an external toolchain. | |||||
__DEFAULT_NO_OPTIONS+=CLANG_BOOTSTRAP CLANG_IS_CC | |||||
.endif | |||||
# 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 GDB | BROKEN_OPTIONS+=BINUTILS BINUTILS_BOOTSTRAP GDB | ||||
.endif | .endif | ||||
.if ${__T} == "amd64" || ${__T} == "i386" || ${__T:Mpowerpc*} | .if ${__T} == "amd64" || ${__T} == "i386" || ${__T:Mpowerpc*} | ||||
__DEFAULT_YES_OPTIONS+=BINUTILS_BOOTSTRAP | __DEFAULT_YES_OPTIONS+=BINUTILS_BOOTSTRAP | ||||
.else | .else | ||||
__DEFAULT_NO_OPTIONS+=BINUTILS_BOOTSTRAP | __DEFAULT_NO_OPTIONS+=BINUTILS_BOOTSTRAP | ||||
.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} != "powerpc" && ${__T} != "powerpcspe" | ||||
__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 243 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.