[llvm-dev] LLVM code coverage build problem - LLVM_BUILD_INSTRUMENTED_COVERAGE
Friedman, Eli via llvm-dev
llvm-dev at lists.llvm.org
Wed Aug 30 11:29:29 PDT 2017
On 8/30/2017 11:19 AM, Ravi David via llvm-dev wrote:
> [ 0%] Building CXX object
> utils/PerfectShuffle/CMakeFiles/llvm-PerfectShuffle.dir/PerfectShuffle.cpp.o
>
> gcc: error: unrecognized command line option
> ?-fprofile-instr-generate=%4m.profraw?
>
> gcc: error: unrecognized command line option ?-fcoverage-mapping?
>
gcc doesn't support -fprofile-instr-generate; if you want to use it, you
have to compile LLVM with clang. (See
https://clang.llvm.org/docs/SourceBasedCodeCoverage.html .)
If you want to use gcov/lcov, you can use "CXXFLAGS=--coverage" or
something like that.
-Eli
--
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170830/14215b92/attachment.html>
More information about the llvm-dev
mailing list