forked from OSchip/llvm-project
[ASan] Build ASan on Windows only if MSVC is used
llvm-svn: 194963
This commit is contained in:
parent
ad72aa0592
commit
be9d20b7a9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue