[compiler-rt] r194963 - [ASan] Build ASan on Windows only if MSVC is used
Alexey Samsonov
samsonov at google.com
Sun Nov 17 04:18:35 PST 2013
Author: samsonov
Date: Sun Nov 17 06:18:35 2013
New Revision: 194963
URL: http://llvm.org/viewvc/llvm-project?rev=194963&view=rev
Log:
[ASan] Build ASan on Windows only if MSVC is used
Modified:
compiler-rt/trunk/lib/CMakeLists.txt
Modified: compiler-rt/trunk/lib/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/CMakeLists.txt?rev=194963&r1=194962&r2=194963&view=diff
==============================================================================
--- compiler-rt/trunk/lib/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/CMakeLists.txt Sun Nov 17 06:18:35 2013
@@ -7,7 +7,8 @@ if(LLVM_USE_SANITIZER STREQUAL "")
# 32-bit Windows support is experimental.
if(CMAKE_SYSTEM_NAME MATCHES "Darwin|Linux")
set(SUPPORTS_BUILDING_ASAN TRUE)
- elseif(CMAKE_SYSTEM_NAME MATCHES "Windows" AND CMAKE_SIZEOF_VOID_P EQUAL 4)
+ elseif(CMAKE_SYSTEM_NAME MATCHES "Windows"
+ AND MSVC AND CMAKE_SIZEOF_VOID_P EQUAL 4)
set(SUPPORTS_BUILDING_ASAN TRUE)
else()
set(SUPPORTS_BUILDING_ASAN FALSE)
More information about the llvm-commits
mailing list