[PATCH] D38642: [clang-fuzzer] Allow building without coverage instrumentation.

Matt Morehouse via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 6 13:48:23 PDT 2017


morehouse added a comment.

In https://reviews.llvm.org/D38642#890969, @kcc wrote:

> I'd like to know more. 
>  At least simple cases work fine:


You're right.  I was trying to add `-fsanitize=fuzzer` to `CMAKE_CXX_FLAGS` right before the link command, which was causing a later compilation to give the error.  Setting `CMAKE_EXE_LINKER_FLAGS` seems to work though.

This seems simpler and cleaner than the approach @bogner took.


https://reviews.llvm.org/D38642





More information about the cfe-commits mailing list