Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/Uses/compiler.mk
Show First 20 Lines • Show All 170 Lines • ▼ Show 20 Lines | |||||
.endif | .endif | ||||
.endif | .endif | ||||
.if ${_COMPILER_ARGS:Mc++11-lang} | .if ${_COMPILER_ARGS:Mc++11-lang} | ||||
.if !${COMPILER_FEATURES:Mc++11} | .if !${COMPILER_FEATURES:Mc++11} | ||||
.if (defined(FAVORITE_COMPILER) && ${FAVORITE_COMPILER} == gcc) || (${ARCH} != amd64 && ${ARCH} != i386) # clang not always supported on Tier-2 | .if (defined(FAVORITE_COMPILER) && ${FAVORITE_COMPILER} == gcc) || (${ARCH} != amd64 && ${ARCH} != i386) # clang not always supported on Tier-2 | ||||
USE_GCC= yes | USE_GCC= yes | ||||
CHOSEN_COMPILER_TYPE= gcc | CHOSEN_COMPILER_TYPE= gcc | ||||
.elif (${COMPILER_TYPE} == clang && ${COMPILER_VERSION} < 34) || ${COMPILER_TYPE} == gcc | .elif ${COMPILER_TYPE} == gcc | ||||
.if ${ALT_COMPILER_TYPE} == clang && ${ALT_COMPILER_VERSION} >= 34 | .if ${ALT_COMPILER_TYPE} == clang | ||||
CPP= clang-cpp | CPP= clang-cpp | ||||
CC= clang | CC= clang | ||||
CXX= clang++ | CXX= clang++ | ||||
CHOSEN_COMPILER_TYPE= clang | CHOSEN_COMPILER_TYPE= clang | ||||
.else | .else | ||||
BUILD_DEPENDS+= ${LOCALBASE}/bin/clang34:lang/clang34 | BUILD_DEPENDS+= ${LOCALBASE}/bin/clang34:lang/clang34 | ||||
CPP= ${LOCALBASE}/bin/clang-cpp34 | CPP= ${LOCALBASE}/bin/clang-cpp34 | ||||
CC= ${LOCALBASE}/bin/clang34 | CC= ${LOCALBASE}/bin/clang34 | ||||
CXX= ${LOCALBASE}/bin/clang++34 | CXX= ${LOCALBASE}/bin/clang++34 | ||||
CHOSEN_COMPILER_TYPE= clang | CHOSEN_COMPILER_TYPE= clang | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.if ${_COMPILER_ARGS:Mc++0x} | .if ${_COMPILER_ARGS:Mc++0x} | ||||
.if !${COMPILER_FEATURES:Mc++0x} | .if !${COMPILER_FEATURES:Mc++0x} | ||||
.if (defined(FAVORITE_COMPILER) && ${FAVORITE_COMPILER} == gcc) || (${ARCH} != amd64 && ${ARCH} != i386) # clang not always supported on Tier-2 | .if (defined(FAVORITE_COMPILER) && ${FAVORITE_COMPILER} == gcc) || (${ARCH} != amd64 && ${ARCH} != i386) # clang not always supported on Tier-2 | ||||
USE_GCC= yes | USE_GCC= yes | ||||
CHOSEN_COMPILER_TYPE= gcc | CHOSEN_COMPILER_TYPE= gcc | ||||
.elif (${COMPILER_TYPE} == clang && ${COMPILER_VERSION} < 34) || ${COMPILER_TYPE} == gcc | .elif ${COMPILER_TYPE} == gcc | ||||
.if ${ALT_COMPILER_TYPE} == clang && ${ALT_COMPILER_VERSION} >= 34 | .if ${ALT_COMPILER_TYPE} == clang | ||||
CPP= clang-cpp | CPP= clang-cpp | ||||
CC= clang | CC= clang | ||||
CXX= clang++ | CXX= clang++ | ||||
CHOSEN_COMPILER_TYPE= clang | CHOSEN_COMPILER_TYPE= clang | ||||
.else | .else | ||||
BUILD_DEPENDS+= ${LOCALBASE}/bin/clang34:lang/clang34 | BUILD_DEPENDS+= ${LOCALBASE}/bin/clang34:lang/clang34 | ||||
CHOSEN_COMPILER_TYPE= clang | CHOSEN_COMPILER_TYPE= clang | ||||
CPP= ${LOCALBASE}/bin/clang-cpp34 | CPP= ${LOCALBASE}/bin/clang-cpp34 | ||||
CC= ${LOCALBASE}/bin/clang34 | CC= ${LOCALBASE}/bin/clang34 | ||||
CXX= ${LOCALBASE}/bin/clang++34 | CXX= ${LOCALBASE}/bin/clang++34 | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.if ${_COMPILER_ARGS:Mc11} | .if ${_COMPILER_ARGS:Mc11} | ||||
.if !${COMPILER_FEATURES:Mc11} | .if !${COMPILER_FEATURES:Mc11} | ||||
.if (defined(FAVORITE_COMPILER) && ${FAVORITE_COMPILER} == gcc) || (${ARCH} != amd64 && ${ARCH} != i386) # clang not always supported on Tier-2 | .if (defined(FAVORITE_COMPILER) && ${FAVORITE_COMPILER} == gcc) || (${ARCH} != amd64 && ${ARCH} != i386) # clang not always supported on Tier-2 | ||||
USE_GCC= yes | USE_GCC= yes | ||||
CHOSEN_COMPILER_TYPE= gcc | CHOSEN_COMPILER_TYPE= gcc | ||||
.elif (${COMPILER_TYPE} == clang && ${COMPILER_VERSION} < 34) || ${COMPILER_TYPE} == gcc | .elif ${COMPILER_TYPE} == gcc | ||||
.if ${ALT_COMPILER_TYPE} == clang && ${ALT_COMPILER_VERSION} >= 34 | .if ${ALT_COMPILER_TYPE} == clang | ||||
CPP= clang-cpp | CPP= clang-cpp | ||||
CC= clang | CC= clang | ||||
CXX= clang++ | CXX= clang++ | ||||
CHOSEN_COMPILER_TYPE= clang | CHOSEN_COMPILER_TYPE= clang | ||||
.else | .else | ||||
BUILD_DEPENDS+= ${LOCALBASE}/bin/clang34:lang/clang34 | BUILD_DEPENDS+= ${LOCALBASE}/bin/clang34:lang/clang34 | ||||
CHOSEN_COMPILER_TYPE= clang | CHOSEN_COMPILER_TYPE= clang | ||||
CPP= ${LOCALBASE}/bin/clang-cpp34 | CPP= ${LOCALBASE}/bin/clang-cpp34 | ||||
Show All 18 Lines |