From f676e762bb3952e75298c96e6658c04e198ec9dd Mon Sep 17 00:00:00 2001 From: DavidKorczynski Date: Thu, 10 Aug 2023 10:03:35 +0100 Subject: [PATCH] njs: enable fuzz introspector (#10821) --- projects/njs/build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/projects/njs/build.sh b/projects/njs/build.sh index 89fada57f..65a1dc310 100755 --- a/projects/njs/build.sh +++ b/projects/njs/build.sh @@ -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