[ASan] Build ASan on Windows only if MSVC is used

llvm-svn: 194963
This commit is contained in:
Alexey Samsonov 2013-11-17 12:18:35 +00:00
parent ad72aa0592
commit be9d20b7a9
1 changed files with 2 additions and 1 deletions

View File

@ -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)