summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaurice Kalinowski <maurice.kalinowski@qt.io>2016-07-05 14:45:24 +0200
committerOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2016-07-22 17:07:50 +0000
commitbbca3cb78da14565b7d4e99b27ba5cf3efc5b35b (patch)
tree425be18ef1cdfe61e2675514c7ec17f17409c8fd
parent57413ad3f61a02368f84b0cbbc022e4df7adfa95 (diff)
Change test's entry point only when actually building it for winrt
Change-Id: I14de901e8cf16d0172a4bd35611c17de753348be Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
-rw-r--r--mkspecs/features/qt_configure.prf10
1 files changed, 5 insertions, 5 deletions
diff --git a/mkspecs/features/qt_configure.prf b/mkspecs/features/qt_configure.prf
index b34f4e53ad..bae050ae18 100644
--- a/mkspecs/features/qt_configure.prf
+++ b/mkspecs/features/qt_configure.prf
@@ -407,12 +407,12 @@ defineTest(qtConfTest_compile) {
qmake_args += "\"CONFIG += $$qmake_configs\""
- # On WinRT we need to change the entry point as we cannot create windows
- # applications
- winrt: \
- qmake_args += " \"QMAKE_LFLAGS += /ENTRY:main\""
-
!$$host {
+ # On WinRT we need to change the entry point as we cannot create windows
+ # applications
+ winrt: \
+ qmake_args += " \"QMAKE_LFLAGS += /ENTRY:main\""
+
# add compiler flags, these are set for the target and should not be applied to host tests
!isEmpty(EXTRA_DEFINES): \
qmake_args += "\"DEFINES += $$EXTRA_DEFINES\""