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>
This commit is contained in:
parent
4a55f1510d
commit
ae496a0ea6
@ -3139,8 +3139,10 @@ void Configure::detectArch()
|
|||||||
QDir::toNativeSeparators(sourcePath + "/config.tests/arch/arch"
|
QDir::toNativeSeparators(sourcePath + "/config.tests/arch/arch"
|
||||||
+ (data.isHost ? "_host" : "") + ".pro"));
|
+ (data.isHost ? "_host" : "") + ".pro"));
|
||||||
|
|
||||||
|
if (!data.isHost) {
|
||||||
if (qmakespec.startsWith("winrt") || qmakespec.startsWith("winphone"))
|
if (qmakespec.startsWith("winrt") || qmakespec.startsWith("winphone"))
|
||||||
command.append(" QMAKE_LFLAGS+=/ENTRY:main");
|
command.append(" QMAKE_LFLAGS+=/ENTRY:main");
|
||||||
|
}
|
||||||
|
|
||||||
int returnValue = 0;
|
int returnValue = 0;
|
||||||
Environment::execute(command, &returnValue);
|
Environment::execute(command, &returnValue);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user