update the workaround

This commit is contained in:
Sylvestre Ledru 2019-08-25 18:24:56 +02:00
parent 5b7327d22f
commit 2057c42b98

View File

@ -2,15 +2,16 @@ Index: llvm-toolchain-snapshot_10~svn369866/compiler-rt/lib/gwp_asan/CMakeLists.
===================================================================
--- llvm-toolchain-snapshot_10~svn369866.orig/compiler-rt/lib/gwp_asan/CMakeLists.txt
+++ llvm-toolchain-snapshot_10~svn369866/compiler-rt/lib/gwp_asan/CMakeLists.txt
@@ -105,9 +105,8 @@ if (COMPILER_RT_HAS_GWP_ASAN)
@@ -105,9 +105,9 @@ if (COMPILER_RT_HAS_GWP_ASAN)
# core is to link it against a dummy main when DLLVM_USE_SANITIZE_COVERAGE
# isn't specified. Instead, here we only build fuzz targets if clang version
# is >= 6.0.
- if (COMPILER_RT_BUILD_LIBFUZZER AND
- "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" AND
- CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 6.0)
+ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" AND
+ COMPILER_RT_BUILD_LIBFUZZER)
+ if (COMPILER_RT_BUILD_LIBFUZZER AND
+ ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") AND
+ CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 6.0)
add_executable(stack_trace_compressor_fuzzer
stack_trace_compressor_fuzzer.cpp
${GWP_ASAN_SOURCES}