mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Update CMake flags, LibFuzzer comments and docs for new -fsanitize-coverage= flags.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236797 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -57,8 +57,7 @@
|
||||
(
|
||||
cd $LLVM/lib/Fuzzer/
|
||||
clang -fPIC -c -g -O2 -std=c++11 Fuzzer*.cpp
|
||||
clang++ -O0 -std=c++11 -fsanitize-coverage=3 \
|
||||
-mllvm -sanitizer-coverage-experimental-trace-compares=1 \
|
||||
clang++ -O0 -std=c++11 -fsanitize-coverage=edge,trace-cmp \
|
||||
-fsanitize=dataflow \
|
||||
test/dfsan/DFSanSimpleCmpTest.cpp Fuzzer*.o
|
||||
./a.out
|
||||
|
@@ -2,7 +2,7 @@
|
||||
# basic blocks and we'll fail to discover the targets.
|
||||
# Also enable the coverage instrumentation back (it is disabled
|
||||
# for the Fuzzer lib)
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "${LIBFUZZER_FLAGS_BASE} -O0 -fsanitize-coverage=4")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "${LIBFUZZER_FLAGS_BASE} -O0 -fsanitize-coverage=edge,indirect-calls")
|
||||
|
||||
set(Tests
|
||||
CounterTest
|
||||
|
Reference in New Issue
Block a user