summaryrefslogtreecommitdiff
path: root/lib/interception
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2014-02-18 07:52:40 +0000
committerAlexey Samsonov <samsonov@google.com>2014-02-18 07:52:40 +0000
commit0571186b725b1bbd13d80ccbf9400d7d4c5b3593 (patch)
tree064829a3906068d58e823f0d11170d7749488800 /lib/interception
parent7b72272d3a2f635c9d75ee46817d35a6d65afcd8 (diff)
[CMake] Simplify setting compile flag disabling RTTI
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201547 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/interception')
-rw-r--r--lib/interception/CMakeLists.txt11
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/interception/CMakeLists.txt b/lib/interception/CMakeLists.txt
index f421fbb07..cf8b3b4f9 100644
--- a/lib/interception/CMakeLists.txt
+++ b/lib/interception/CMakeLists.txt
@@ -9,15 +9,8 @@ set(INTERCEPTION_SOURCES
include_directories(..)
-if (NOT MSVC)
- set(INTERCEPTION_CFLAGS
- ${SANITIZER_COMMON_CFLAGS}
- -fno-rtti)
-else()
- set(INTERCEPTION_CFLAGS
- ${SANITIZER_COMMON_CFLAGS}
- /GR-)
-endif()
+set(INTERCEPTION_CFLAGS ${SANITIZER_COMMON_CFLAGS})
+append_no_rtti_flag(INTERCEPTION_CFLAGS)
if(APPLE)
# Build universal binary on APPLE.