mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-10 22:43:53 +00:00
![Justin Bogner](/assets/img/avatar_default.png)
This adds a dummy main so we can build and run the llvm-isel-fuzzer functionality when we aren't building LLVM with coverage. The approach here should serve as a template to stop in-tree fuzzers from bitrotting (See llvm.org/pr34314). Note that I'll probably move most of the logic in DummyISelFuzzer's `main` to a library so it's easy to reuse it in other fuzz targets, but I'm planning on doing that in a follow up that also consolidates argument handling in our LLVMFuzzerInitialize implementations. llvm-svn: 312338
17 lines
283 B
CMake
17 lines
283 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
${LLVM_TARGETS_TO_BUILD}
|
|
Analysis
|
|
AsmPrinter
|
|
CodeGen
|
|
Core
|
|
FuzzMutate
|
|
IRReader
|
|
MC
|
|
ScalarOpts
|
|
SelectionDAG
|
|
Support
|
|
Target
|
|
)
|
|
add_llvm_fuzzer(llvm-isel-fuzzer llvm-isel-fuzzer.cpp
|
|
DUMMY_MAIN DummyISelFuzzer.cpp)
|