]> granicus.if.org Git - llvm/commit
cmake: Invent add_llvm_fuzzer to set up fuzzer targets
authorJustin Bogner <mail@justinbogner.com>
Thu, 31 Aug 2017 00:36:33 +0000 (00:36 +0000)
committerJustin Bogner <mail@justinbogner.com>
Thu, 31 Aug 2017 00:36:33 +0000 (00:36 +0000)
commit33a778823ba743242b7332a8608ec084e4319d3f
tree8844f6f95a88bd426ab7b27188f14d9bce32f01d
parentcb4a5a0eb41d0a2e3273bdf699ec598f86b4c740
cmake: Invent add_llvm_fuzzer to set up fuzzer targets

This moves the cmake configuration for fuzzers in LLVM to a new macro,
add_llvm_fuzzer. This will make it easier to keep things consistent
while implementing llvm.org/pr34314.

I've also made a couple of minor functional changes here:

- the fuzzers now use add_llvm_executable rather than add_llvm_tool.
  This means they won't create install targets and stuff like that,
  because those made little sense for these fuzzers.
- I've grouped these under "Fuzzers" rather than in with "Tools" for
  people who build with IDEs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312200 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/AddLLVM.cmake
tools/llvm-as-fuzzer/CMakeLists.txt
tools/llvm-dwarfdump/CMakeLists.txt
tools/llvm-dwarfdump/fuzzer/CMakeLists.txt
tools/llvm-isel-fuzzer/CMakeLists.txt
tools/llvm-mc-assemble-fuzzer/CMakeLists.txt
tools/llvm-mc-disassemble-fuzzer/CMakeLists.txt