Changeset View
Changeset View
Standalone View
Standalone View
share/mk/src.opts.mk
Show First 20 Lines • Show All 208 Lines • ▼ Show 20 Lines | |||||
__T=${MACHINE_ARCH} | __T=${MACHINE_ARCH} | ||||
.endif | .endif | ||||
.if defined(TARGET) | .if defined(TARGET) | ||||
__TT=${TARGET} | __TT=${TARGET} | ||||
.else | .else | ||||
__TT=${MACHINE} | __TT=${MACHINE} | ||||
.endif | .endif | ||||
.if ${__T} == "aarch64" || ${__T} == "amd64" || ${__T} == "i386" || \ | |||||
${__T} == "powerpc64" || ${__T} == "sparc64" | |||||
__DEFAULT_YES_OPTIONS+=CXGBETOOL | |||||
ngie: Could this be named CXGBE instead so similar logic could be applied to the drivers as needed? | |||||
.else | |||||
__DEFAULT_NO_OPTIONS+=CXGBETOOL | |||||
.endif | |||||
Done Inline ActionsI'm not sure how best to sort these sections, but it feels to me like this ought to be later in the file. emaste: I'm not sure how best to sort these sections, but it feels to me like this ought to be later in… | |||||
Done Inline ActionsAgreed. ngie: Agreed. | |||||
Not Done Inline ActionsI coudn't think of an obvious place for this so I put it right after __T was available. np: I coudn't think of an obvious place for this so I put it right after __T was available. | |||||
.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") | ||||
# 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. | ||||
▲ Show 20 Lines • Show All 235 Lines • Show Last 20 Lines |
Could this be named CXGBE instead so similar logic could be applied to the drivers as needed?