njs: enable fuzz introspector (#10821)

This commit is contained in:
DavidKorczynski 2023-08-10 10:03:35 +01:00 committed by GitHub
parent 27a40582e3
commit f676e762bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -18,7 +18,12 @@
# Build pcre dependency to be linked statically.
pushd $SRC/pcre2
./autogen.sh
CFLAGS="$CFLAGS -fno-use-cxa-atexit" CXXFLAGS="$CXXFLAGS -fno-use-cxa-atexit" ./configure
if [ "$SANITIZER" == "introspector" ]; then
# Disable sanitizers for introspector for pcre. We only care about njs and it's blocking the build.
CFLAGS="" CXXFLAGS="" LIB_FUZZING_ENGINE="" ./configure
else
CFLAGS="$CFLAGS -fno-use-cxa-atexit" CXXFLAGS="$CXXFLAGS -fno-use-cxa-atexit" ./configure
fi
make -j$(nproc) clean
make -j$(nproc) all
make install