diff options
author | Alexey Samsonov <samsonov@google.com> | 2014-02-18 07:52:40 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2014-02-18 07:52:40 +0000 |
commit | b73db72a17bb96abc24dd320a01a8d17ed1e288c (patch) | |
tree | 366440a054c7fe8740e5f533f6adee492c1cedad /compiler-rt/lib/interception | |
parent | 16a03613fa32f53a7024c900c6cff99170e6d183 (diff) | |
download | bcm5719-llvm-b73db72a17bb96abc24dd320a01a8d17ed1e288c.tar.gz bcm5719-llvm-b73db72a17bb96abc24dd320a01a8d17ed1e288c.zip |
[CMake] Simplify setting compile flag disabling RTTI
llvm-svn: 201547
Diffstat (limited to 'compiler-rt/lib/interception')
-rw-r--r-- | compiler-rt/lib/interception/CMakeLists.txt | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/compiler-rt/lib/interception/CMakeLists.txt b/compiler-rt/lib/interception/CMakeLists.txt index f421fbb072e..cf8b3b4f9cd 100644 --- a/compiler-rt/lib/interception/CMakeLists.txt +++ b/compiler-rt/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. |