Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions projects/assimp/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
#
################################################################################

rm -rf contrib/googletest
git clone https://github.com/google/googletest contrib/googletest

# generate build env and build assimp
cmake CMakeLists.txt -G "Ninja" -DBUILD_SHARED_LIBS=OFF -DASSIMP_BUILD_ZLIB=ON \
-DASSIMP_BUILD_TESTS=ON -DASSIMP_BUILD_ASSIMP_TOOLS=OFF \
Expand Down
6 changes: 5 additions & 1 deletion projects/cpuinfo/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ sed -i 's/"\/proc\/cpuinfo"/"\/tmp\/libfuzzer.config"/g' src/x86/linux/cpuinfo.c
sed -i 's/"\/sys\/devices\/system\/cpu\/kernel_max"/"\/tmp\/libfuzzer.config"/g' src/linux/processors.c
mkdir build
cd build
cmake ..
cmake \
-DCPUINFO_BUILD_UNIT_TESTS=OFF \
-DCPUINFO_BUILD_MOCK_TESTS=OFF \
-DCPUINFO_BUILD_BENCHMARKS=OFF \
..
make


Expand Down
1 change: 1 addition & 0 deletions projects/cxxopts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
#
################################################################################

export CXXFLAGS="${CXXFLAGS} -std=c++17"
export USE_BAZEL_VERSION=7.4.0
bazel_build_fuzz_tests
2 changes: 1 addition & 1 deletion projects/opencv/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ for fuzzer in core_fuzzer filestorage_read_file_fuzzer \
filestorage_read_filename_fuzzer filestorage_read_string_fuzzer \
generateusergallerycollage_fuzzer imdecode_fuzzer imencode_fuzzer \
imread_fuzzer readnetfromtensorflow_fuzzer; do
$CXX $CXXFLAGS $LIB_FUZZING_ENGINE $fuzzer.cc -std=c++11 \
$CXX $CXXFLAGS $LIB_FUZZING_ENGINE $fuzzer.cc -std=c++17 \
-I$install_dir/include/opencv4 -L$install_dir/lib \
-L$install_dir/lib/opencv4/3rdparty \
-lopencv_dnn -lopencv_objdetect -lopencv_photo -lopencv_ml -lopencv_gapi \
Expand Down
2 changes: 1 addition & 1 deletion projects/spdlog/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ cmake -DSPDLOG_BUILD_TESTS=ON . && make -j$(nproc)
# build fuzzers
for f in $(find $SRC -name '*_fuzzer.cc'); do
b=$(basename -s .cc $f)
$CXX $CXXFLAGS -std=c++11 -Iinclude \
$CXX $CXXFLAGS -std=c++17 -Iinclude \
$f $LIB_FUZZING_ENGINE ./libspdlog.a \
-o $OUT/$b
done
Expand Down
2 changes: 1 addition & 1 deletion projects/zopfli/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ make -j$(nproc) libzopfli.a
# build fuzzers
for fuzzers in $(find $SRC -name '*_fuzzer.cc'); do
base=$(basename -s .cc $fuzzers)
$CXX $CXXFLAGS -std=c++11 -I. -Isrc/zopfli \
$CXX $CXXFLAGS -std=c++17 -I. -Isrc/zopfli \
$fuzzers ./libzopfli.a -o $OUT/$base $LIB_FUZZING_ENGINE
done