From 681201377af6bb5b848516c205c84a8ff1f1080c Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Mon, 8 Sep 2014 17:22:23 +0200 Subject: [PATCH] refs #322 added support for profile build as discussed --- build.pri | 10 ++++++++++ config.pri | 1 + 2 files changed, 11 insertions(+) diff --git a/build.pri b/build.pri index ced839c59..9f12bec80 100644 --- a/build.pri +++ b/build.pri @@ -62,6 +62,16 @@ macx-clang { WORD_SIZE = 64 } +########################### +# Profile build +########################### +contains(BLACK_CONFIG, ProfileRelease) { + win32-msvc* { + QMAKE_CXXFLAGS_RELEASE *= /Zi + QMAKE_LFLAGS_RELEASE *= /DEBUG /PROFILE /INCREMENTAL:NO /OPT:REF /OPT:ICF + } +} + ########################### # No FSX or FS9 for 64 bits ########################### diff --git a/config.pri b/config.pri index 5260a8ed0..cae969a21 100644 --- a/config.pri +++ b/config.pri @@ -30,4 +30,5 @@ BLACK_CONFIG += Unittests BLACK_CONFIG += FS9 BLACK_CONFIG += FSX BLACK_CONFIG += XPlane +BLACK_CONFIG += ProfileRelease #BLACK_CONFIG += Doxygen