aboutsummaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@qt.io>2016-08-31 16:42:32 +0200
committerMarco Bubke <marco.bubke@qt.io>2016-09-05 10:01:14 +0000
commit2e062552eb38c1a84a76164809a37d578fd7159c (patch)
tree86b9b67e1ab63b114085d23e179171bf852ee299 /src/shared
parente41eff55676ba0ae947ce46d74c11ad96704d079 (diff)
Clang: Report an error if the unit test are linked with LLVM without RTTI
We don't want to disable RTTI in unittest so we require to compile them with RTTI. You can disable yourself RTTI if you don't want them for some reasons. Change-Id: I76d05a36442305f379ce3d88b3f6ed4372127002 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/clang/clang_installation.pri2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/clang/clang_installation.pri b/src/shared/clang/clang_installation.pri
index f34bf3fcf8..7a77f9d7ce 100644
--- a/src/shared/clang/clang_installation.pri
+++ b/src/shared/clang/clang_installation.pri
@@ -100,3 +100,5 @@ isEmpty(LLVM_VERSION): error("Cannot determine clang version at $$LLVM_INSTALL_D
}
unix:LLVM_CXXFLAGS = -fno-rtti -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
+
+LLVM_IS_COMPILED_WITH_RTTI = $$system($$llvm_config --has-rtti, lines)