1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00

Fix the build when cc isn't a C++11 compiler.

This commit is contained in:
Brooks Davis 2015-10-28 00:42:31 +00:00
parent 12c656fa52
commit 0c59cb6e64
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=400366

View File

@ -12,7 +12,7 @@ LLVM_SUFFIX= -devel
LLVM_PREFIX= ${PREFIX}/llvm${LLVM_SUFFIX}
LLVM_PORTDIR= ${.CURDIR}/../llvm${LLVM_SUFFIX}
USES= cmake:outsource ninja
USES= cmake:outsource compiler:c++11-lib ninja
BUILD_DEPENDS= llvm-config${LLVM_SUFFIX}:${PORTSDIR}/devel/llvm${LLVM_SUFFIX}
@ -30,7 +30,7 @@ ONLY_FOR_ARCHS_REASON= plist contents not known
.for arch in ${ONLY_FOR_ARCHS}
_arch=${arch}
.if (${_arch} == ${ARCH} || (${_arch} == "i386" && ${ARCH} == "amd64"))
.if (${_arch} == ${ARCH} || (${_arch} == "i386" && ${ARCH} == "amd64" && ${COMPILER_TYPE} != "gcc"))
ARCH_SUB:= ${ARCH_SUB} ${arch:tu}=
.else
ARCH_SUB:= ${ARCH_SUB} ${arch:tu}="@comment "