File: build.sh

package info (click to toggle)
python-igraph 0.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 21,944 kB
  • sloc: ansic: 225,735; cpp: 23,208; python: 17,085; xml: 2,407; yacc: 1,164; sh: 531; lex: 486; pascal: 158; sed: 45; makefile: 23; javascript: 20; fortran: 8
file content (16 lines) | stat: -rwxr-xr-x 503 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash -eu

sed 's/use_all_warnings/\#use_all_warnings/g' -i $SRC/igraph/src/CMakeLists.txt
mkdir build && cd build
cmake ..
make -j$(nproc)

# Create seed corpus
zip $OUT/read_gml_fuzzer_seed_corpus.zip \
        $SRC/igraph/examples/simple/karate.gml

cd $SRC/igraph

$CXX $CXXFLAGS -I$SRC/igraph/build/include -I$SRC/igraph/include -o read_gml_fuzzer.o -c ./fuzzing/read_gml_fuzzer.c
$CXX $CXXFLAGS $LIB_FUZZING_ENGINE read_gml_fuzzer.o \
        -o $OUT/read_gml_fuzzer ./build/src/libigraph.a