forked from OSchip/llvm-project
Reland "[FuzzMutate] Split out FuzzerCLI library that doesn't depend on IR."
This reverts commit a1bb952e83
.
I'd somehow missed updating llvm-yaml-parser-fuzzer, now fixed.
This commit is contained in:
parent
a1bb952e83
commit
e571e1a6c3
|
@ -1,5 +1,5 @@
|
|||
set(LLVM_LINK_COMPONENTS
|
||||
FuzzMutate
|
||||
FuzzerCLI
|
||||
Support
|
||||
)
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
set(LLVM_LINK_COMPONENTS
|
||||
FuzzMutate
|
||||
FuzzerCLI
|
||||
Support
|
||||
)
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} FuzzMutate)
|
||||
set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} FuzzerCLI)
|
||||
set(CXX_FLAGS_NOFUZZ ${CMAKE_CXX_FLAGS})
|
||||
set(DUMMY_MAIN DummyClangFuzzer.cpp)
|
||||
if(LLVM_LIB_FUZZING_ENGINE)
|
||||
|
|
|
@ -1,9 +1,23 @@
|
|||
add_llvm_component_library(LLVMFuzzMutate
|
||||
# Generic helper for fuzzer binaries.
|
||||
# This should not depend on LLVM IR etc.
|
||||
add_llvm_component_library(LLVMFuzzerCLI
|
||||
FuzzerCLI.cpp
|
||||
PARTIAL_SOURCES_INTENDED
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/FuzzMutate
|
||||
|
||||
LINK_COMPONENTS
|
||||
Support
|
||||
)
|
||||
|
||||
# Library for using LLVM IR together with fuzzers.
|
||||
add_llvm_component_library(LLVMFuzzMutate
|
||||
IRMutator.cpp
|
||||
OpDescriptor.cpp
|
||||
Operations.cpp
|
||||
RandomIRBuilder.cpp
|
||||
PARTIAL_SOURCES_INTENDED
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/FuzzMutate
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
set(LLVM_LINK_COMPONENTS
|
||||
Demangle
|
||||
FuzzMutate
|
||||
FuzzerCLI
|
||||
Support
|
||||
)
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ set(LLVM_LINK_COMPONENTS
|
|||
BitWriter
|
||||
CodeGen
|
||||
Core
|
||||
FuzzerCLI
|
||||
FuzzMutate
|
||||
IRReader
|
||||
MC
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
set(LLVM_LINK_COMPONENTS
|
||||
Demangle
|
||||
FuzzMutate
|
||||
FuzzerCLI
|
||||
Support
|
||||
)
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
set(LLVM_LINK_COMPONENTS
|
||||
Demangle
|
||||
FuzzMutate
|
||||
FuzzerCLI
|
||||
Support
|
||||
)
|
||||
|
||||
|
|
|
@ -14,6 +14,7 @@ set(LLVM_LINK_COMPONENTS
|
|||
AggressiveInstCombine
|
||||
InstCombine
|
||||
Instrumentation
|
||||
FuzzerCLI
|
||||
FuzzMutate
|
||||
MC
|
||||
ObjCARCOpts
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
set(LLVM_LINK_COMPONENTS
|
||||
Demangle
|
||||
FuzzMutate
|
||||
FuzzerCLI
|
||||
Support
|
||||
)
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
set(LLVM_LINK_COMPONENTS
|
||||
Support
|
||||
FuzzMutate
|
||||
FuzzerCLI
|
||||
)
|
||||
|
||||
add_llvm_fuzzer(llvm-special-case-list-fuzzer
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
set(LLVM_LINK_COMPONENTS
|
||||
Support
|
||||
FuzzMutate
|
||||
FuzzerCLI
|
||||
)
|
||||
|
||||
add_llvm_fuzzer(llvm-yaml-numeric-parser-fuzzer
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
set(LLVM_LINK_COMPONENTS
|
||||
Support
|
||||
FuzzMutate
|
||||
FuzzerCLI
|
||||
)
|
||||
|
||||
add_llvm_fuzzer(llvm-yaml-parser-fuzzer
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
set(LLVM_LINK_COMPONENTS
|
||||
FuzzMutate
|
||||
FuzzerCLI
|
||||
Support
|
||||
)
|
||||
add_llvm_fuzzer(mlir-parser-fuzzer
|
||||
|
|
Loading…
Reference in New Issue