build: remove rtti for files using clang
Clang is usually compiled without runtime type information, so all files that use clang classes can't have rtti. This change creates a separate CLANG_FILES variable which holds all clang files, so they can be compiled without rtti. review id = 11
This commit is contained in:
@@ -3,8 +3,6 @@ execute_process(
|
||||
OUTPUT_VARIABLE CLANG_DEFINITIONS
|
||||
)
|
||||
|
||||
set(CLANG_DEFINITIONS ${CLANG_DEFINITIONS} "-fno-rtti")
|
||||
|
||||
set(CLANG_INCLUDE_DIRS
|
||||
"$ENV{CLANG_DIR}/llvm/tools/clang/include"
|
||||
"$ENV{CLANG_DIR}/build/tools/clang/include"
|
||||
|
||||
Reference in New Issue
Block a user