summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compiler-rt/lib/asan/CMakeLists.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/compiler-rt/lib/asan/CMakeLists.txt b/compiler-rt/lib/asan/CMakeLists.txt
index 8f329531d59..63632467684 100644
--- a/compiler-rt/lib/asan/CMakeLists.txt
+++ b/compiler-rt/lib/asan/CMakeLists.txt
@@ -50,9 +50,11 @@ endif()
filter_available_targets(ASAN_SUPPORTED_ARCH
x86_64 i386 powerpc64)
-set(ASAN_ASM_SOURCES asan_asm_instrumentation.S)
-set_source_files_properties(${ASAN_ASM_SOURCES} PROPERTIES LANGUAGE C)
-list(APPEND ASAN_SOURCES ${ASAN_ASM_SOURCES})
+if (NOT MSVC)
+ set(ASAN_ASM_SOURCES asan_asm_instrumentation.S)
+ set_source_files_properties(${ASAN_ASM_SOURCES} PROPERTIES LANGUAGE C)
+ list(APPEND ASAN_SOURCES ${ASAN_ASM_SOURCES})
+endif()
# Compile ASan sources into an object library.
if(APPLE)
OpenPOWER on IntegriCloud