diff options
author | dim <dim@FreeBSD.org> | 2010-11-14 22:17:12 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2010-11-14 22:17:12 +0000 |
commit | d0bfe1beb0bb04f950aeab007500d221e46b911c (patch) | |
tree | fa15b072e8366fdb7892ef1f4f81b6a85bf938de | |
parent | ca4a476430b5cda1e17c0d5a5b18ed929f25d62f (diff) | |
download | FreeBSD-src-d0bfe1beb0bb04f950aeab007500d221e46b911c.zip FreeBSD-src-d0bfe1beb0bb04f950aeab007500d221e46b911c.tar.gz |
Don't use -fno-exceptions or -fno-rtti for .c files, when building
llvm/clang.
-rw-r--r-- | lib/clang/clang.build.mk | 4 |
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 |