summaryrefslogtreecommitdiffstats
path: root/lib/clang
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2015-02-04 21:48:50 +0000
committerdim <dim@FreeBSD.org>2015-02-04 21:48:50 +0000
commitd3c0662bc9d7562dd6632f4b031a223e3b822d0f (patch)
tree8be2e2882eefdf73410165cc46aa9b0040847319 /lib/clang
parent7984b94dab1c2e20c98edd0089b674cb68e91084 (diff)
downloadFreeBSD-src-d3c0662bc9d7562dd6632f4b031a223e3b822d0f.zip
FreeBSD-src-d3c0662bc9d7562dd6632f4b031a223e3b822d0f.tar.gz
Followup to r278223, by only using -stdlib=libc++ when the compiler is
clang; not even recent versions of gcc support the -stdlib flag. Noticed by: ngie
Diffstat (limited to 'lib/clang')
-rw-r--r--lib/clang/clang.build.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/clang/clang.build.mk b/lib/clang/clang.build.mk
index f29762b..da9c6a9 100644
--- a/lib/clang/clang.build.mk
+++ b/lib/clang/clang.build.mk
@@ -34,7 +34,8 @@ BUILD_TRIPLE?= ${BUILD_ARCH:C/amd64/x86_64/:C/armv6hf/armv6/:C/arm64/aarch64/}-u
CFLAGS+= -DLLVM_DEFAULT_TARGET_TRIPLE=\"${TARGET_TRIPLE}\" \
-DLLVM_HOST_TRIPLE=\"${BUILD_TRIPLE}\" \
-DDEFAULT_SYSROOT=\"${TOOLS_PREFIX}\"
-CXXFLAGS+= -std=c++11 -stdlib=libc++ -fno-exceptions -fno-rtti
+CXXFLAGS+= -std=c++11 -fno-exceptions -fno-rtti
+CXXFLAGS.clang+= -stdlib=libc++
.PATH: ${LLVM_SRCS}/${SRCDIR}
OpenPOWER on IntegriCloud