[PATCH] D21049: [LibFuzzer] Fix some unit test crashes on OSX.

Kostya Serebryany via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 7 17:02:22 PDT 2016


kcc added a comment.

In http://reviews.llvm.org/D21049#451731, @delcypher wrote:

> In http://reviews.llvm.org/D21049#451718, @kcc wrote:
>
> > That's way better, but can you try one more step? 
> >  Move this into test/FuzzerUnittest.cpp
>
>
> Putting
>
>   #define _LIBCPP_HAS_NO_ASAN
>
>
> at the top of `test/FuzzerUnittest.cpp` seems to work. Unfortunately I can't guard that with `#if defined(_LIBCPP_VERSION)` because that doesn't seem to work unless I've included a header file from libc++ first.


That's fine, I think. just put 
#define _LIBCPP_HAS_NO_ASAN // with a comment


http://reviews.llvm.org/D21049





More information about the llvm-commits mailing list