summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compiler-rt/lib/fuzzer/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/fuzzer/CMakeLists.txt b/compiler-rt/lib/fuzzer/CMakeLists.txt
index f6c5b761ac3..75d20d39ae7 100644
--- a/compiler-rt/lib/fuzzer/CMakeLists.txt
+++ b/compiler-rt/lib/fuzzer/CMakeLists.txt
@@ -71,7 +71,7 @@ if (CMAKE_CXX_FLAGS MATCHES "fsanitize-coverage")
list(APPEND LIBFUZZER_CFLAGS -fno-sanitize-coverage=trace-pc-guard,edge,trace-cmp,indirect-calls,8bit-counters)
endif()
-if(OS_NAME MATCHES "Windows")
+if(MSVC)
# Silence warnings with /Ehsc and avoid an error by unecessarily defining
# thread_local when it isn't even used on Windows.
list(APPEND LIBFUZZER_CFLAGS /EHsc)
OpenPOWER on IntegriCloud