Don't use -fno-exceptions or -fno-rtti for .c files, when building
llvm/clang.
This commit is contained in:
parent
ca4a476430
commit
d0bfe1beb0
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user