summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Löhning <robert.loehning@qt.io>2021-08-13 13:01:45 +0200
committerRobert Löhning <robert.loehning@qt.io>2021-08-16 19:12:58 +0000
commit746a5c8d6bb7ac1a6807438217b6772e31b1821c (patch)
treeb40cad16846afb608a4e50fcef03e9daffbcdc94
parent1ec03a1c9687380069b6bcbb8565de12d4afd562 (diff)
downloadqtqa-746a5c8d6bb7ac1a6807438217b6772e31b1821c.tar.gz
oss-fuzz: Update configure flags
Explicitly set optimizations to "-O1" as in C(XX)FLAGS. QT_NO_DEPRECATED_WARNINGS was only needed because Qt 5.15 generated more warnings than the log allowed. Change-Id: I6f7657060546c79517ae1b49c458e0b25f427bfa Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
-rwxr-xr-xfuzzing/oss-fuzz/build.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/fuzzing/oss-fuzz/build.sh b/fuzzing/oss-fuzz/build.sh
index dbfa698..723f7bb 100755
--- a/fuzzing/oss-fuzz/build.sh
+++ b/fuzzing/oss-fuzz/build.sh
@@ -17,7 +17,10 @@
# build project
cd $WORK
-$SRC/qt/configure -qt-libmd4c -platform linux-clang-libc++ -release -static -opensource -confirm-license -no-opengl -prefix $PWD/qtbase -D QT_NO_DEPRECATED_WARNINGS
+$SRC/qt/configure -opensource -confirm-license -prefix $PWD/qtbase \
+ -platform linux-clang-libc++ -release -static \
+ -qt-libmd4c -no-opengl -- \
+ -DCMAKE_CXX_FLAGS_RELEASE="-O1" -DQT_USE_DEFAULT_CMAKE_OPTIMIZATION_FLAGS=ON
VERBOSE=1 cmake --build . --parallel
# prepare corpus files