2015-09-16 19:49:49 +08:00
|
|
|
if( LLVM_USE_SANITIZE_COVERAGE )
|
2017-08-23 08:40:58 +08:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=fuzzer")
|
2015-09-16 19:49:49 +08:00
|
|
|
|
|
|
|
set(LLVM_LINK_COMPONENTS
|
2017-02-27 14:22:17 +08:00
|
|
|
AllTargetsAsmPrinters
|
|
|
|
AllTargetsAsmParsers
|
2015-09-16 19:49:49 +08:00
|
|
|
AllTargetsDescs
|
|
|
|
AllTargetsInfos
|
|
|
|
MC
|
2017-02-27 14:22:17 +08:00
|
|
|
MCParser
|
2015-09-16 19:49:49 +08:00
|
|
|
Support
|
|
|
|
)
|
2017-08-23 08:40:58 +08:00
|
|
|
|
|
|
|
add_llvm_tool(llvm-mc-assemble-fuzzer
|
2017-02-27 14:22:17 +08:00
|
|
|
llvm-mc-assemble-fuzzer.cpp)
|
2015-09-16 19:49:49 +08:00
|
|
|
endif()
|