File tree Expand file tree Collapse file tree 6 files changed +12
-4
lines changed Expand file tree Collapse file tree 6 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 15
15
#
16
16
# ###############################################################################
17
17
18
+ rm -rf contrib/googletest
19
+ git clone https://github.com/google/googletest contrib/googletest
20
+
18
21
# generate build env and build assimp
19
22
cmake CMakeLists.txt -G " Ninja" -DBUILD_SHARED_LIBS=OFF -DASSIMP_BUILD_ZLIB=ON \
20
23
-DASSIMP_BUILD_TESTS=ON -DASSIMP_BUILD_ASSIMP_TOOLS=OFF \
Original file line number Diff line number Diff line change @@ -20,7 +20,11 @@ sed -i 's/"\/proc\/cpuinfo"/"\/tmp\/libfuzzer.config"/g' src/x86/linux/cpuinfo.c
20
20
sed -i ' s/"\/sys\/devices\/system\/cpu\/kernel_max"/"\/tmp\/libfuzzer.config"/g' src/linux/processors.c
21
21
mkdir build
22
22
cd build
23
- cmake ..
23
+ cmake \
24
+ -DCPUINFO_BUILD_UNIT_TESTS=OFF \
25
+ -DCPUINFO_BUILD_MOCK_TESTS=OFF \
26
+ -DCPUINFO_BUILD_BENCHMARKS=OFF \
27
+ ..
24
28
make
25
29
26
30
Original file line number Diff line number Diff line change 15
15
#
16
16
# ###############################################################################
17
17
18
+ export CXXFLAGS=" ${CXXFLAGS} -std=c++17"
18
19
export USE_BAZEL_VERSION=7.4.0
19
20
bazel_build_fuzz_tests
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ for fuzzer in core_fuzzer filestorage_read_file_fuzzer \
34
34
filestorage_read_filename_fuzzer filestorage_read_string_fuzzer \
35
35
generateusergallerycollage_fuzzer imdecode_fuzzer imencode_fuzzer \
36
36
imread_fuzzer readnetfromtensorflow_fuzzer; do
37
- $CXX $CXXFLAGS $LIB_FUZZING_ENGINE $fuzzer .cc -std=c++11 \
37
+ $CXX $CXXFLAGS $LIB_FUZZING_ENGINE $fuzzer .cc -std=c++17 \
38
38
-I$install_dir /include/opencv4 -L$install_dir /lib \
39
39
-L$install_dir /lib/opencv4/3rdparty \
40
40
-lopencv_dnn -lopencv_objdetect -lopencv_photo -lopencv_ml -lopencv_gapi \
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ cmake -DSPDLOG_BUILD_TESTS=ON . && make -j$(nproc)
21
21
# build fuzzers
22
22
for f in $( find $SRC -name ' *_fuzzer.cc' ) ; do
23
23
b=$( basename -s .cc $f )
24
- $CXX $CXXFLAGS -std=c++11 -Iinclude \
24
+ $CXX $CXXFLAGS -std=c++17 -Iinclude \
25
25
$f $LIB_FUZZING_ENGINE ./libspdlog.a \
26
26
-o $OUT /$b
27
27
done
Original file line number Diff line number Diff line change @@ -22,6 +22,6 @@ make -j$(nproc) libzopfli.a
22
22
# build fuzzers
23
23
for fuzzers in $( find $SRC -name ' *_fuzzer.cc' ) ; do
24
24
base=$( basename -s .cc $fuzzers )
25
- $CXX $CXXFLAGS -std=c++11 -I. -Isrc/zopfli \
25
+ $CXX $CXXFLAGS -std=c++17 -I. -Isrc/zopfli \
26
26
$fuzzers ./libzopfli.a -o $OUT /$base $LIB_FUZZING_ENGINE
27
27
done
You can’t perform that action at this time.
0 commit comments