We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a750c0 commit fd7ba2bCopy full SHA for fd7ba2b
afl-cov-build.sh
@@ -3,13 +3,15 @@
3
test -z "$1" -o "$1" = "-h" && {
4
echo "Syntax: $0 <command> [options]"
5
echo Sets build options for coverage instrumentation with gcov/lcov.
6
+ echo Set CC/CXX environment variables if you do not want gcc/g++.
7
echo Example: "$0 ./configure --disable-shared"
8
}
9
10
test -z "$CC" && export CC=gcc
11
test -z "$CXX" && export CXX=g++
12
export CFLAGS="-fprofile-arcs -ftest-coverage"
13
export CXXFLAGS="$CFLAGS"
14
+export CPPFLAGS="$CFLAGS"
15
export LDFLAGS="-lgcov --coverage"
16
17
$*
0 commit comments