summaryrefslogtreecommitdiffstats
path: root/lib/clang
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2010-11-14 22:17:12 +0000
committerdim <dim@FreeBSD.org>2010-11-14 22:17:12 +0000
commitd0bfe1beb0bb04f950aeab007500d221e46b911c (patch)
treefa15b072e8366fdb7892ef1f4f81b6a85bf938de /lib/clang
parentca4a476430b5cda1e17c0d5a5b18ed929f25d62f (diff)
downloadFreeBSD-src-d0bfe1beb0bb04f950aeab007500d221e46b911c.zip
FreeBSD-src-d0bfe1beb0bb04f950aeab007500d221e46b911c.tar.gz
Don't use -fno-exceptions or -fno-rtti for .c files, when building
llvm/clang.
Diffstat (limited to 'lib/clang')
-rw-r--r--lib/clang/clang.build.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/clang/clang.build.mk b/lib/clang/clang.build.mk
index e1728d8..33b251b 100644
--- a/lib/clang/clang.build.mk
+++ b/lib/clang/clang.build.mk
@@ -18,14 +18,14 @@ TARGET_ARCH?= ${MACHINE_ARCH}
CFLAGS+=-DLLVM_HOSTTRIPLE=\"${TARGET_ARCH}-undermydesk-freebsd9.0\"
.ifndef LLVM_REQUIRES_EH
-CFLAGS+=-fno-exceptions
+CXXFLAGS+=-fno-exceptions
.else
# If the library or program requires EH, it also requires RTTI.
LLVM_REQUIRES_RTTI=
.endif
.ifndef LLVM_REQUIRES_RTTI
-CFLAGS+=-fno-rtti
+CXXFLAGS+=-fno-rtti
.endif
.ifdef TOOLS_PREFIX
OpenPOWER on IntegriCloud