[PATCH] D15290: [libFuzzer] CMake support for libFuzzer on OS X

Kostya Serebryany via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 9 21:21:38 PST 2015


kcc added a comment.

In http://reviews.llvm.org/D15290#306499, @kubabrecka wrote:

> In http://reviews.llvm.org/D15290#304544, @kcc wrote:
>
> > Uninstrumented tests should not fail to link. That's what they are testing for. 
> >  On Linux this works due to weak function (if there is no run-time, the functions are NULL and libFuzzer will fail at run-time).
> >
> > DFSAN-related change is ok
>
>
> What are the expected steps to use libFuzzer in a non-instrumented way?  Your link command still needs to include -fsanitize=..., right?


The non-instrumented test should be compiled *and* linked w/o any -fsanitize* flags. 
The test should link successfully, and when run, print an error message and exit. 
Shouldn't this just work out of the box? (I assume that weak functions are functioning on OSX)


http://reviews.llvm.org/D15290





More information about the llvm-commits mailing list