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:
Eberhard Graether
2014-04-29 17:23:20 +02:00
parent 330c38d9af
commit ad54b0d1fa
3 changed files with 11 additions and 6 deletions
-2
View File
@@ -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"