Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/Uses/objc.mk
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
.endif | .endif | ||||
.if ${_ALTCCVERSION:Mclang} | .if ${_ALTCCVERSION:Mclang} | ||||
ALT_COMPILER_TYPE= clang | ALT_COMPILER_TYPE= clang | ||||
.elif !empty(_ALTCCVERSION) | .elif !empty(_ALTCCVERSION) | ||||
ALT_COMPILER_TYPE= gcc | ALT_COMPILER_TYPE= gcc | ||||
.endif | .endif | ||||
# We do always need clang | # We do always need clang | ||||
.if (${COMPILER_TYPE} == clang && ${COMPILER_VERSION} < 34) || ${COMPILER_TYPE} != clang | .if ${COMPILER_TYPE} != clang | ||||
.if ${ALT_COMPILER_TYPE} == clang && ${ALT_COMPILER_VERSION} >= 34 | .if ${ALT_COMPILER_TYPE} == clang | ||||
CC= /usr/bin/clang | CC= /usr/bin/clang | ||||
CPP= /usr/bin/clang-cpp | CPP= /usr/bin/clang-cpp | ||||
CXX= /usr/bin/clang++ | CXX= /usr/bin/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 | ||||
Show All 12 Lines |