xref: /third_party/lz4/ossfuzz/ossfuzz.sh
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/lz4/ossfuzz/
127b27ec6Sopenharmony_ci#!/bin/bash -eu
227b27ec6Sopenharmony_ci
327b27ec6Sopenharmony_ci# This script is called by the oss-fuzz main project when compiling the fuzz
427b27ec6Sopenharmony_ci# targets. This script is regression tested by travisoss.sh.
527b27ec6Sopenharmony_ci
627b27ec6Sopenharmony_ci# Save off the current folder as the build root.
727b27ec6Sopenharmony_ciexport BUILD_ROOT=$PWD
827b27ec6Sopenharmony_ci
927b27ec6Sopenharmony_ciecho "CC: $CC"
1027b27ec6Sopenharmony_ciecho "CXX: $CXX"
1127b27ec6Sopenharmony_ciecho "LIB_FUZZING_ENGINE: $LIB_FUZZING_ENGINE"
1227b27ec6Sopenharmony_ciecho "CFLAGS: $CFLAGS"
1327b27ec6Sopenharmony_ciecho "CXXFLAGS: $CXXFLAGS"
1427b27ec6Sopenharmony_ciecho "OUT: $OUT"
1527b27ec6Sopenharmony_ci
1627b27ec6Sopenharmony_ciexport MAKEFLAGS+="-j$(nproc)"
1727b27ec6Sopenharmony_ci
1827b27ec6Sopenharmony_cipushd ossfuzz
1927b27ec6Sopenharmony_cimake V=1 all
2027b27ec6Sopenharmony_cipopd
2127b27ec6Sopenharmony_ci
2227b27ec6Sopenharmony_ci# Copy the fuzzers to the target directory.
2327b27ec6Sopenharmony_cicp -v ossfuzz/*_fuzzer $OUT/
24

Indexes created Thu Nov 07 10:32:03 CST 2024