File: ossfuzz.sh

package info (click to toggle)
glaze 6.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,948 kB
  • sloc: cpp: 121,839; sh: 99; ansic: 26; makefile: 13
file content (16 lines) | stat: -rwxr-xr-x 449 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
#
# this is the entry point for build.sh on oss fuzz, so that changes in how to
# build the fuzzers does not require changes in oss fuzz but instead can
# be done in the glaze repository.

set -eux

$CXX --version

for SRCFILE in $(ls fuzzing/*.cpp |grep -v -E '(exhaustive|main\.cpp)'); do
    NAME=$(basename $SRCFILE .cpp)
    $CXX $CXXFLAGS -std=c++23 -g -Iinclude \
         $SRCFILE -o $OUT/$NAME \
         $LIB_FUZZING_ENGINE
done