forked from OSchip/llvm-project
Gating clang-fuzzer on the same conditions required to build the LLVMFuzzer library. Otherwise, we can run into a situation where clang-fuzzer attempts to build, but its dependency was never built.
llvm-svn: 234170
This commit is contained in:
parent
972756b741
commit
82a2202ae6
|
@ -1,18 +1,20 @@
|
|||
set(LLVM_LINK_COMPONENTS support)
|
||||
if( LLVM_USE_SANITIZE_COVERAGE )
|
||||
set(LLVM_LINK_COMPONENTS support)
|
||||
|
||||
add_clang_executable(clang-fuzzer
|
||||
EXCLUDE_FROM_ALL
|
||||
ClangFuzzer.cpp
|
||||
)
|
||||
add_clang_executable(clang-fuzzer
|
||||
EXCLUDE_FROM_ALL
|
||||
ClangFuzzer.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(clang-fuzzer
|
||||
${CLANG_FORMAT_LIB_DEPS}
|
||||
clangAST
|
||||
clangBasic
|
||||
clangDriver
|
||||
clangFrontend
|
||||
clangRewriteFrontend
|
||||
clangStaticAnalyzerFrontend
|
||||
clangTooling
|
||||
LLVMFuzzer
|
||||
)
|
||||
target_link_libraries(clang-fuzzer
|
||||
${CLANG_FORMAT_LIB_DEPS}
|
||||
clangAST
|
||||
clangBasic
|
||||
clangDriver
|
||||
clangFrontend
|
||||
clangRewriteFrontend
|
||||
clangStaticAnalyzerFrontend
|
||||
clangTooling
|
||||
LLVMFuzzer
|
||||
)
|
||||
endif()
|
Loading…
Reference in New Issue