mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-21 07:13:13 +01:00
Fix '-fno-rtti' removal for tablegen tools.
Also just remove it on pre-3.2 builds.
This commit is contained in:
@@ -322,7 +322,10 @@ add_executable(gen_gccbuiltins utils/gen_gccbuiltins.cpp)
|
||||
|
||||
# Prior to LLVM 3.2, TableGen still uses RTTI, contrary to the rest of LLVM.
|
||||
# Thus, we have to remove the -fno-rtti flag from the llvm-config output.
|
||||
string(REPLACE "-fno-rtti " "" TABLEGEN_CXXFLAGS ${LLVM_CXXFLAGS})
|
||||
set(TABLEGEN_CXXFLAGS "${LLVM_CXXFLAGS}")
|
||||
if(${LDC_LLVM_VER} LESS 302)
|
||||
string(REPLACE "-fno-rtti" "" TABLEGEN_CXXFLAGS ${TABLEGEN_CXXFLAGS})
|
||||
endif()
|
||||
|
||||
set_target_properties(
|
||||
gen_gccbuiltins PROPERTIES
|
||||
|
||||
Reference in New Issue
Block a user