From 342bf9d12469e43fc7313982eff8fd0270e0a6eb Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 7 Aug 2016 14:40:59 +0300 Subject: [PATCH] MSVC doesn't support optimization flag -O3. --HG-- branch : develop --- src/libs/vlayout/vlayout.pro | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libs/vlayout/vlayout.pro b/src/libs/vlayout/vlayout.pro index 6968632f9..83efafe99 100644 --- a/src/libs/vlayout/vlayout.pro +++ b/src/libs/vlayout/vlayout.pro @@ -55,8 +55,10 @@ CONFIG(release, debug|release){ QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll } - QMAKE_CXXFLAGS -= -O2 # Disable default optimization level - QMAKE_CXXFLAGS += -O3 # For vlayout library enable speed optimizations + !win32-msvc* { + QMAKE_CXXFLAGS -= -O2 # Disable default optimization level + QMAKE_CXXFLAGS += -O3 # For vlayout library enable speed optimizations + } noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols # do nothing