Displaying 9 results from an estimated 9 matches for "llvm_use_sanitize_coverag".
Did you mean:
llvm_use_sanitize_coverage
2017 Aug 24
3
Building LLVM's fuzzers
...it a/cmake/modules/HandleLLVMOptions.cmake b/cmake/modules/HandleLLVMOptions.cmake
> index 04596a6ff63..5465d8d95ba 100644
> --- a/cmake/modules/HandleLLVMOptions.cmake
> +++ b/cmake/modules/HandleLLVMOptions.cmake
> @@ -665,6 +665,9 @@ if(LLVM_USE_SANITIZER)
> endif()
> if (LLVM_USE_SANITIZE_COVERAGE)
> append("-fsanitize=fuzzer-no-link" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
> +
> + # Dead stripping messes up coverage instrumentation.
> + set(LLVM_NO_DEAD_STRIP ON)
> endif()
> endif()
>
> Any arguments against that?
We shouldn't do this. We really...
2017 Aug 24
5
Building LLVM's fuzzers
...ilding the fuzzers in the LLVM tree doesn't seem to
work any more (possibly as of moving libFuzzer to compiler-rt, but there
have been a few other changes in the last week or so that may be related).
I'm building with a fresh top-of-tree clang and setting
-DLLVM_USE_SANITIZER=Address and -DLLVM_USE_SANITIZE_COVERAGE=On, which
was working before:
% cmake -GNinja \
-DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=On \
-DLLVM_ENABLE_WERROR=On \
-DLLVM_USE_SANITIZER=Address -DLLVM_USE_SANITIZE_COVERAGE=On \
-DCMAKE_C_COMPILER=$HOME/llvm-lkgc/bin/clang \
$HOM...
2017 Aug 24
3
Building LLVM's fuzzers
...ptions.cmake b/cmake/modules/HandleLLVMOptions.cmake
> > index 04596a6ff63..5465d8d95ba 100644
> > --- a/cmake/modules/HandleLLVMOptions.cmake
> > +++ b/cmake/modules/HandleLLVMOptions.cmake
> > @@ -665,6 +665,9 @@ if(LLVM_USE_SANITIZER)
> > endif()
> > if (LLVM_USE_SANITIZE_COVERAGE)
> > append("-fsanitize=fuzzer-no-link" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
> > +
> > + # Dead stripping messes up coverage instrumentation.
> > + set(LLVM_NO_DEAD_STRIP ON)
> > endif()
> > endif()
> >
> > Any arguments against th...
2017 Aug 24
2
Building LLVM's fuzzers
...make
>>> > index 04596a6ff63..5465d8d95ba 100644
>>> > --- a/cmake/modules/HandleLLVMOptions.cmake
>>> > +++ b/cmake/modules/HandleLLVMOptions.cmake
>>> > @@ -665,6 +665,9 @@ if(LLVM_USE_SANITIZER)
>>> > endif()
>>> > if (LLVM_USE_SANITIZE_COVERAGE)
>>> > append("-fsanitize=fuzzer-no-link" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
>>> > +
>>> > + # Dead stripping messes up coverage instrumentation.
>>> > + set(LLVM_NO_DEAD_STRIP ON)
>>> > endif()
>>> > endi...
2017 Aug 24
4
Building LLVM's fuzzers
...5d8d95ba 100644
>> >>> > --- a/cmake/modules/HandleLLVMOptions.cmake
>> >>> > +++ b/cmake/modules/HandleLLVMOptions.cmake
>> >>> > @@ -665,6 +665,9 @@ if(LLVM_USE_SANITIZER)
>> >>> > endif()
>> >>> > if (LLVM_USE_SANITIZE_COVERAGE)
>> >>> > append("-fsanitize=fuzzer-no-link" CMAKE_C_FLAGS
>> CMAKE_CXX_FLAGS)
>> >>> > +
>> >>> > + # Dead stripping messes up coverage instrumentation.
>> >>> > + set(LLVM_NO_DEAD_STRIP ON)
>>...
2017 Aug 24
3
Building LLVM's fuzzers
...;> > --- a/cmake/modules/HandleLLVMOptions.cmake
>>>> >>> > +++ b/cmake/modules/HandleLLVMOptions.cmake
>>>> >>> > @@ -665,6 +665,9 @@ if(LLVM_USE_SANITIZER)
>>>> >>> > endif()
>>>> >>> > if (LLVM_USE_SANITIZE_COVERAGE)
>>>> >>> > append("-fsanitize=fuzzer-no-link" CMAKE_C_FLAGS
>>>> CMAKE_CXX_FLAGS)
>>>> >>> > +
>>>> >>> > + # Dead stripping messes up coverage instrumentation.
>>>> >>> >...
2017 Aug 25
2
Building LLVM's fuzzers
...eLLVMOptions.cmake
> >>>>> >>> > +++ b/cmake/modules/HandleLLVMOptions.cmake
> >>>>> >>> > @@ -665,6 +665,9 @@ if(LLVM_USE_SANITIZER)
> >>>>> >>> > endif()
> >>>>> >>> > if (LLVM_USE_SANITIZE_COVERAGE)
> >>>>> >>> > append("-fsanitize=fuzzer-no-link" CMAKE_C_FLAGS
> >>>>> CMAKE_CXX_FLAGS)
> >>>>> >>> > +
> >>>>> >>> > + # Dead stripping messes up coverage instrumentation...
2017 Sep 11
2
Building LLVM's fuzzers
...>>>>> >>> > +++ b/cmake/modules/HandleLLVMOptions.cmake
>>> >>>>> >>> > @@ -665,6 +665,9 @@ if(LLVM_USE_SANITIZER)
>>> >>>>> >>> > endif()
>>> >>>>> >>> > if (LLVM_USE_SANITIZE_COVERAGE)
>>> >>>>> >>> > append("-fsanitize=fuzzer-no-link" CMAKE_C_FLAGS
>>> >>>>> CMAKE_CXX_FLAGS)
>>> >>>>> >>> > +
>>> >>>>> >>> > + # Dead stripping me...
2017 Aug 22
8
llvm-mc-[dis]assemble-fuzzer status?
Hi,
As a part of a recent move of libFuzzer from LLVM to compiler-rt I am looking into updating the build code
for the libraries which use libFuzzer.
I have tried to compile llvm-mc-assemble-fuzzer, and llvm-mc-disassemble-fuzzer, and I couldn’t build either of those.
For the first one, the reason is that it refers to a nonexistent enum,
and for the second one I believe the reason is that it