From 5369822217cbc0bed956670c7a9d036c72aa834a Mon Sep 17 00:00:00 2001 From: Eugene Kliuchnikov Date: Thu, 30 Dec 2021 06:37:53 +0300 Subject: [PATCH] Fix "local reproduce" problems: (#7067) * cmake uses cached values * linker complaints about rpaths * ninja compiles differently - cmake does not detect problem with "no-rtti" flag --- projects/libjxl/build.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/projects/libjxl/build.sh b/projects/libjxl/build.sh index 87a5d2cda..47c385617 100755 --- a/projects/libjxl/build.sh +++ b/projects/libjxl/build.sh @@ -26,6 +26,7 @@ build_args=( -DJPEGXL_ENABLE_SJPEG=OFF -DJPEGXL_ENABLE_VIEWERS=OFF -DCMAKE_BUILD_TYPE=Release + -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON ) # Build and generate a fuzzer corpus in release mode without instrumentation. @@ -35,6 +36,7 @@ build_args=( unset CXXFLAGS export AFL_NOOPT=1 + rm -rf ${WORK}/libjxl-corpus mkdir -p ${WORK}/libjxl-corpus cd ${WORK}/libjxl-corpus cmake \ @@ -55,6 +57,11 @@ build_args=( # checks. export CXXFLAGS="${CXXFLAGS} -DJXL_IS_DEBUG_BUILD=1" +if [ "$SANITIZER" == "undefined" ]; then + build_args[${#build_args[@]}]="-DCXX_NO_RTTI_SUPPORTED=OFF" +fi + +rm -rf ${WORK}/libjxl-fuzzer mkdir -p ${WORK}/libjxl-fuzzer cd ${WORK}/libjxl-fuzzer cmake \