diff options
author | Oswald Buddenhagen <oswald.buddenhagen@digia.com> | 2014-07-02 14:42:58 +0200 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@digia.com> | 2014-08-01 14:37:24 +0200 |
commit | ae496a0ea6c0951e9220209b345fb656bf50c09e (patch) | |
tree | ceb9578edbbca3b661dcdf06e130ff449222c3a8 /tools/configure | |
parent | 4a55f1510d1e250b5e899fe5c03c98f714816a5c (diff) |
add /ENTRY:main only for target builds
Change-Id: Ifa1d36607a1884ec989b5b514e7d1b9a2b40ddce
Reviewed-by: David Schulz <david.schulz@digia.com>
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'tools/configure')
-rw-r--r-- | tools/configure/configureapp.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp index f40c1ac615..76b2b9073c 100644 --- a/tools/configure/configureapp.cpp +++ b/tools/configure/configureapp.cpp @@ -3139,8 +3139,10 @@ void Configure::detectArch() QDir::toNativeSeparators(sourcePath + "/config.tests/arch/arch" + (data.isHost ? "_host" : "") + ".pro")); - if (qmakespec.startsWith("winrt") || qmakespec.startsWith("winphone")) - command.append(" QMAKE_LFLAGS+=/ENTRY:main"); + if (!data.isHost) { + if (qmakespec.startsWith("winrt") || qmakespec.startsWith("winphone")) + command.append(" QMAKE_LFLAGS+=/ENTRY:main"); + } int returnValue = 0; Environment::execute(command, &returnValue); |