Debian Codegraph @

3rdparty/catch2/fuzzing/build_fuzzers.sh

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 #
3 # Builds the fuzzers
4 #
5 # By Paul Dreik 20200923
6 set -exu
7
8 CATCHROOT=$(readlinkscip-shell system . . readlink. -f $(dirnamescip-shell system . . dirname. $0)/..)
9
10
11 BUILDDIR=$CATCHROOT/build-fuzzers
12 mkdirscip-shell system . . mkdir. -p $BUILDDIR
13 cd $BUILDDIR
14
15 if whichscip-shell system . . which. /usr/lib/ccache/clang++scip-shell filesystem . . `/usr/lib/ccache/clang++`. >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 ; then
16 CXX=/usr/lib/ccache/clang++scip-shell filesystem . . `/usr/lib/ccache/clang++`.
17 else
18 CXX=clang++
19 fi
20
21 cmakescip-shell system . . cmake. $CATCHROOT \
22 -DCMAKE_CXX_COMPILER=$CXX \
23 -DCMAKE_CXX_FLAGS="-fsanitize=fuzzer-no-link,address,undefined -O3 -g" \
24 -DCATCH_DEVELOPMENT_BUILD=On \
25 -DCATCH_BUILD_EXAMPLES=Off \
26 -DCATCH_BUILD_EXTRA_TESTS=Off \
27 -DCATCH_BUILD_TESTING=Off \
28 -DBUILD_TESTING=Off \
29 -DCATCH_ENABLE_WERROR=Off \
30 -DCATCH_BUILD_FUZZERS=On
31
32 cmakescip-shell system . . cmake. --build . -j $(nprocscip-shell system . . nproc.)
33