[compiler-rt] r369055 - Guard fuzzer build behind Clang-only flags.
Mitch Phillips via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 15 15:15:47 PDT 2019
Author: hctim
Date: Thu Aug 15 15:15:46 2019
New Revision: 369055
URL: http://llvm.org/viewvc/llvm-project?rev=369055&view=rev
Log:
Guard fuzzer build behind Clang-only flags.
Should fix sanitizer buildbots and any one else who's building
compiler-rt using gcc.
Modified:
compiler-rt/trunk/lib/gwp_asan/CMakeLists.txt
Modified: compiler-rt/trunk/lib/gwp_asan/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/gwp_asan/CMakeLists.txt?rev=369055&r1=369054&r2=369055&view=diff
==============================================================================
--- compiler-rt/trunk/lib/gwp_asan/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/gwp_asan/CMakeLists.txt Thu Aug 15 15:15:46 2019
@@ -100,17 +100,18 @@ if (COMPILER_RT_HAS_GWP_ASAN)
CFLAGS ${GWP_ASAN_CFLAGS} ${SANITIZER_COMMON_CFLAGS})
# Build the stack trace compressor fuzzer.
- add_llvm_executable(stack_trace_compressor_fuzzer
- stack_trace_compressor_fuzzer.cpp
- ${GWP_ASAN_SOURCES}
- ${GWP_ASAN_HEADERS})
- set_target_properties(stack_trace_compressor_fuzzer
- PROPERTIES FOLDER "Fuzzers")
- target_compile_options(stack_trace_compressor_fuzzer
- PRIVATE -fsanitize=fuzzer-no-link)
- set_target_properties(stack_trace_compressor_fuzzer PROPERTIES LINK_FLAGS
- -fsanitize=fuzzer)
- add_dependencies(gwp_asan stack_trace_compressor_fuzzer)
+ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
+ add_llvm_executable(stack_trace_compressor_fuzzer
+ stack_trace_compressor_fuzzer.cpp
+ ${GWP_ASAN_SOURCES}
+ ${GWP_ASAN_HEADERS})
+ set_target_properties(stack_trace_compressor_fuzzer
+ PROPERTIES FOLDER "Fuzzers")
+ target_compile_options(stack_trace_compressor_fuzzer
+ PRIVATE -fsanitize=fuzzer-no-link)
+ target_link_options(stack_trace_compressor_fuzzer PRIVATE -fsanitize=fuzzer)
+ add_dependencies(gwp_asan stack_trace_compressor_fuzzer)
+ endif()
endif()
if(COMPILER_RT_INCLUDE_TESTS)
More information about the llvm-commits
mailing list