View | Details | Raw Unified | Return to bug 206039 | Differences between
and this patch

Collapse All | Expand All

(-)b/share/mk/src.opts.mk (-5 / +7 lines)
Lines 216-239 __TT=${MACHINE} Link Here
216
.if ${COMPILER_FEATURES:Mc++11} && (${__T} == "aarch64" || \
216
.if ${COMPILER_FEATURES:Mc++11} && (${__T} == "aarch64" || \
217
    ${__T} == "amd64" || ${__TT} == "arm" || ${__T} == "i386")
217
    ${__T} == "amd64" || ${__TT} == "arm" || ${__T} == "i386")
218
# Clang is enabled, and will be installed as the default /usr/bin/cc.
218
# Clang is enabled, and will be installed as the default /usr/bin/cc.
219
__DEFAULT_YES_OPTIONS+=CLANG CLANG_BOOTSTRAP CLANG_FULL CLANG_IS_CC
219
__DEFAULT_YES_OPTIONS+=CLANG CLANG_BOOTSTRAP CLANG_FULL CLANG_IS_CC \
220
    LLVM_LIBUNWIND
220
__DEFAULT_NO_OPTIONS+=GCC GCC_BOOTSTRAP GNUCXX
221
__DEFAULT_NO_OPTIONS+=GCC GCC_BOOTSTRAP GNUCXX
221
.elif ${COMPILER_FEATURES:Mc++11} && ${__T:Mpowerpc*}
222
.elif ${COMPILER_FEATURES:Mc++11} && ${__T:Mpowerpc*}
222
# On powerpc, if an external compiler that supports C++11 is used as ${CC},
223
# On powerpc, if an external compiler that supports C++11 is used as ${CC},
223
# then Clang is enabled, but GCC is installed as the default /usr/bin/cc.
224
# then Clang is enabled, but GCC is installed as the default /usr/bin/cc.
224
__DEFAULT_YES_OPTIONS+=CLANG CLANG_FULL GCC GCC_BOOTSTRAP GNUCXX
225
__DEFAULT_YES_OPTIONS+=CLANG CLANG_FULL GCC GCC_BOOTSTRAP GNUCXX
225
__DEFAULT_NO_OPTIONS+=CLANG_BOOTSTRAP CLANG_IS_CC
226
__DEFAULT_NO_OPTIONS+=CLANG_BOOTSTRAP CLANG_IS_CC LLVM_LIBUNWIND
226
.else
227
.else
227
# Everything else disables Clang, and uses GCC instead.
228
# Everything else disables Clang, and uses GCC instead.
228
__DEFAULT_YES_OPTIONS+=GCC GCC_BOOTSTRAP GNUCXX
229
__DEFAULT_YES_OPTIONS+=GCC GCC_BOOTSTRAP GNUCXX
229
__DEFAULT_NO_OPTIONS+=CLANG CLANG_BOOTSTRAP CLANG_FULL CLANG_IS_CC
230
__DEFAULT_NO_OPTIONS+=CLANG CLANG_BOOTSTRAP CLANG_FULL CLANG_IS_CC \
231
    LLVM_LIBUNWIND
230
.endif
232
.endif
231
# In-tree binutils/gcc are older versions without modern architecture support.
233
# In-tree binutils/gcc are older versions without modern architecture support.
232
.if ${__T} == "aarch64" || ${__T} == "riscv64"
234
.if ${__T} == "aarch64" || ${__T} == "riscv64"
233
BROKEN_OPTIONS+=BINUTILS BINUTILS_BOOTSTRAP GCC GCC_BOOTSTRAP GDB
235
BROKEN_OPTIONS+=BINUTILS BINUTILS_BOOTSTRAP GCC GCC_BOOTSTRAP GDB
234
__DEFAULT_YES_OPTIONS+=ELFCOPY_AS_OBJCOPY LLVM_LIBUNWIND
236
__DEFAULT_YES_OPTIONS+=ELFCOPY_AS_OBJCOPY
235
.else
237
.else
236
__DEFAULT_NO_OPTIONS+=ELFCOPY_AS_OBJCOPY LLVM_LIBUNWIND
238
__DEFAULT_NO_OPTIONS+=ELFCOPY_AS_OBJCOPY
237
.endif
239
.endif
238
.if ${__T} == "riscv64"
240
.if ${__T} == "riscv64"
239
BROKEN_OPTIONS+=PROFILE # "sorry, unimplemented: profiler support for RISC-V"
241
BROKEN_OPTIONS+=PROFILE # "sorry, unimplemented: profiler support for RISC-V"

Return to bug 206039