[PATCH] D20558: [LibFuzzer] Start cleaning up the CMakeLists.txt files.

Dan Liew via llvm-commits llvm-commits at lists.llvm.org
Mon May 23 21:39:32 PDT 2016


delcypher created this revision.
delcypher added a reviewer: kcc.
delcypher added a subscriber: llvm-commits.
Herald added a subscriber: kubabrecka.

[LibFuzzer] Start cleaning up the CMakeLists.txt files.

Previously the flags were only being set correctly when the
build type was "Release". Now the build should work properly
for all the supported build types. When building libFuzzer
the optimization level respects whatever is used for the
rest of LLVM but for the LibFuzzer tests we force -O0.

While I am here try to avoid setting `CMAKE_CXX_FLAGS` and
`CMAKE_CXX_FLAGS_*` where possible and instead use
`target_compile_options()` and `llvm_append_linker_flag()`
which is cleaner.


http://reviews.llvm.org/D20558

Files:
  lib/Fuzzer/CMakeLists.txt
  lib/Fuzzer/test/CMakeLists.txt
  lib/Fuzzer/test/dfsan/CMakeLists.txt
  lib/Fuzzer/test/trace-bb/CMakeLists.txt
  lib/Fuzzer/test/trace-pc/CMakeLists.txt
  lib/Fuzzer/test/ubsan/CMakeLists.txt
  lib/Fuzzer/test/uninstrumented/CMakeLists.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20558.58193.patch
Type: text/x-patch
Size: 9130 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160524/98f20026/attachment.bin>


More information about the llvm-commits mailing list