From 9e6b42ffacf61a38fa17dc528d4714be90f4eff2 Mon Sep 17 00:00:00 2001 From: huxingyi Date: Sun, 6 Oct 2019 13:51:45 +0930 Subject: [PATCH] Fix optimized compiling options for windows --- dust3d.pro | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/dust3d.pro b/dust3d.pro index caabab42..b30d8c7f 100644 --- a/dust3d.pro +++ b/dust3d.pro @@ -96,13 +96,29 @@ DEFINES += "PROJECT_DEFINED_APP_REFERENCE_GUIDE_URL=\"\\\"$$REFERENCE_GUIDE_URL\ DEFINES += "PROJECT_DEFINED_APP_UPDATES_CHECKER_URL=\"\\\"$$UPDATES_CHECKER_URL\\\"\"" DEFINES += "PROJECT_DEFINED_APP_PLATFORM=\"\\\"$$PLATFORM\\\"\"" -QMAKE_CXXFLAGS_RELEASE -= -O -QMAKE_CXXFLAGS_RELEASE -= -O1 -QMAKE_CXXFLAGS_RELEASE -= -O2 +macx { + QMAKE_CXXFLAGS_RELEASE -= -O + QMAKE_CXXFLAGS_RELEASE -= -O1 + QMAKE_CXXFLAGS_RELEASE -= -O2 -QMAKE_CXXFLAGS_RELEASE += -O3 + QMAKE_CXXFLAGS_RELEASE += -O3 -QMAKE_CXXFLAGS += -std=c++11 + QMAKE_CXXFLAGS += -std=c++11 +} + +unix:!macx { + QMAKE_CXXFLAGS_RELEASE -= -O + QMAKE_CXXFLAGS_RELEASE -= -O1 + QMAKE_CXXFLAGS_RELEASE -= -O2 + + QMAKE_CXXFLAGS_RELEASE += -O3 + + QMAKE_CXXFLAGS += -std=c++11 +} + +win32 { + QMAKE_CXXFLAGS += /O2 +} include(thirdparty/QtAwesome/QtAwesome/QtAwesome.pri)