mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-24 06:30:19 +00:00
9b13b8c338
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228429 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
524 B
CMake
21 lines
524 B
CMake
# Disable the coverage instrumentation for the fuzzer itself.
|
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O2 -fsanitize-coverage=0")
|
|
if( LLVM_USE_SANITIZE_COVERAGE )
|
|
add_library(LLVMFuzzerNoMain OBJECT
|
|
FuzzerCrossOver.cpp
|
|
FuzzerIO.cpp
|
|
FuzzerLoop.cpp
|
|
FuzzerMutate.cpp
|
|
FuzzerSanitizerOptions.cpp
|
|
FuzzerUtil.cpp
|
|
)
|
|
add_library(LLVMFuzzer STATIC
|
|
FuzzerMain.cpp
|
|
$<TARGET_OBJECTS:LLVMFuzzerNoMain>
|
|
)
|
|
|
|
if( LLVM_INCLUDE_TESTS )
|
|
add_subdirectory(test)
|
|
endif()
|
|
endif()
|