aboutsummaryrefslogtreecommitdiffhomepage
path: root/projects/libtorrent/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'projects/libtorrent/build.sh')
-rwxr-xr-xprojects/libtorrent/build.sh14
1 files changed, 8 insertions, 6 deletions
diff --git a/projects/libtorrent/build.sh b/projects/libtorrent/build.sh
index 2dd444cd..062b01dd 100755
--- a/projects/libtorrent/build.sh
+++ b/projects/libtorrent/build.sh
@@ -15,11 +15,12 @@
#
################################################################################
-export PATH=${PATH}:${PWD}/../boost_1_69_0/tools/build/src/engine/bin.linuxx86_64
-export BOOST_ROOT=${PWD}/../boost_1_69_0
-export BOOST_BUILD_PATH=${PWD}/../boost_1_69_0/tools/build
-
-(cd ${PWD}/../boost_1_69_0 && ./bootstrap.sh)
+export PATH=${PATH}:${PWD}/../boost
+export BOOST_ROOT=${PWD}/../boost
+export BOOST_BUILD_PATH=${PWD}/../boost/tools/build
+# when building b2, we don't want sanitizers enabled
+ASAN_OPTIONS=detect_leaks=0
+(cd ${PWD}/../boost && ./bootstrap.sh && ./b2 headers)
echo "CXX=$CXX"
echo "CXXFLAGS=$CXXFLAGS"
@@ -27,7 +28,8 @@ echo "CXXFLAGS=$CXXFLAGS"
echo "using clang : ossfuzz : $CXX : <compileflags>\"$CXXFLAGS\" <linkflags>\"$CXXFLAGS\" <linkflags>\"${LIB_FUZZING_ENGINE}\" ;" >project-config.jam
cat project-config.jam
cd fuzzers
-b2 clang-ossfuzz -j$(nproc) crypto=openssl fuzz=external sanitize=off stage-large
+# we don't want sanitizers enabled on b2 itself
+ASAN_OPTIONS=detect_leaks=0 b2 clang-ossfuzz -j$(nproc) crypto=openssl fuzz=external sanitize=off stage-large logging=off
cp fuzzers/* $OUT
wget --no-verbose https://github.com/arvidn/libtorrent/releases/download/libtorrent-1_2_1/corpus.zip