1Upstream-Status: Pending
2
3From fb4316ca6e44a6b34e7d109360fc716c372e1293 Mon Sep 17 00:00:00 2001
4From: Khem Raj <raj.khem@gmail.com>
5Date: Wed, 12 Jul 2017 11:45:06 -0700
6Subject: [PATCH] config.pri: Use -O1 optimization in DEBUG flags
7
8when building wit FORTIFY_SOURCES we need some level of
9optimization turned on for the compile to succeed
10
11O1 is a good compromise between debug quality and
12optimization level.
13
14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15
16---
17 config.pri | 4 ++--
18 1 file changed, 2 insertions(+), 2 deletions(-)
19
20diff --git a/config.pri b/config.pri
21index 94d595a..d7b221f 100644
22--- a/config.pri
23+++ b/config.pri
24@@ -15,8 +15,8 @@ include(defines.pri)
25 # Linker optimization for release build
26 QMAKE_LFLAGS_RELEASE+=-Wl,--as-needed
27 # Compiler warnings are error if the build type is debug
28-QMAKE_CXXFLAGS_DEBUG+=-Werror -O0
29-QMAKE_CFLAGS_DEBUG+=-Werror -O0
30+QMAKE_CXXFLAGS_DEBUG+=-Werror -O1
31+QMAKE_CFLAGS_DEBUG+=-Werror -O1
32
33 OBJECTS_DIR = .obj
34 MOC_DIR = .moc
35