From 89ecdca5e73996633de2c74f230d9dec71327b02 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 26 Aug 2007 19:30:27 +0000 Subject: [PATCH] Compile with -O2 in release mode and -O1 in debug mode --- src/src.pro | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/src.pro b/src/src.pro index 2ca046af3..d512a8b7c 100644 --- a/src/src.pro +++ b/src/src.pro @@ -19,17 +19,18 @@ DEFINES += VERSION_BUGFIX=0 contains(DEBUG_MODE, 1){ CONFIG += debug CONFIG -= release + QMAKE_CXXFLAGS_RELEASE += -O1 + QMAKE_CXXFLAGS_DEBUG += -O1 message(Debug build!) } contains(DEBUG_MODE, 0){ CONFIG -= debug CONFIG += release + QMAKE_CXXFLAGS_RELEASE += -O2 + QMAKE_CXXFLAGS_DEBUG += -O2 message(Release build!) } -QMAKE_CXXFLAGS_RELEASE += -fwrapv -O2 -QMAKE_CXXFLAGS_DEBUG += -fwrapv -O2 - CONFIG += link_pkgconfig PKGCONFIG += libtorrent libccext2 libccgnu2 QT += network xml