[compiler-rt] r200482 - Add an /FS flag to the lib/interception CMake to make it buildable with VS2013 too
Timur Iskhodzhanov
timurrrr at google.com
Thu Jan 30 11:19:29 PST 2014
Author: timurrrr
Date: Thu Jan 30 13:19:29 2014
New Revision: 200482
URL: http://llvm.org/viewvc/llvm-project?rev=200482&view=rev
Log:
Add an /FS flag to the lib/interception CMake to make it buildable with VS2013 too
Modified:
compiler-rt/trunk/lib/interception/CMakeLists.txt
Modified: compiler-rt/trunk/lib/interception/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/interception/CMakeLists.txt?rev=200482&r1=200481&r2=200482&view=diff
==============================================================================
--- compiler-rt/trunk/lib/interception/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/interception/CMakeLists.txt Thu Jan 30 13:19:29 2014
@@ -9,7 +9,15 @@ set(INTERCEPTION_SOURCES
include_directories(..)
-set(INTERCEPTION_CFLAGS ${SANITIZER_COMMON_CFLAGS})
+if (NOT MSVC)
+ set(INTERCEPTION_CFLAGS
+ ${SANITIZER_COMMON_CFLAGS})
+ -fno-rtti)
+else()
+ set(INTERCEPTION_CFLAGS
+ ${SANITIZER_COMMON_CFLAGS}
+ /GR- /FS)
+endif()
if(APPLE)
# Build universal binary on APPLE.
More information about the llvm-commits
mailing list