forked from qt-creator/qt-creator
Qmake: Use target-specific extension for deployment
Add file extensions to execatables about to be deployed based on the
OS found in the toolchain's targetAbi instead of using the hostOs().
This should fix deployment from windows to non-windows machines.
Task-number: QTCREATORBUG-21608
Change-Id: I83678bda1d56ff24848b7b498b95081d00b5a5f0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
(cherry picked from commit 383f0b9fcc)
This commit is contained in:
committed by
Eike Ziller
parent
185f8985c6
commit
f0226d9644
@@ -1347,7 +1347,7 @@ QString QmakeProject::executableFor(const QmakeProFile *file)
|
||||
} else {
|
||||
const QString extension = file->singleVariableValue(Variable::TargetExt);
|
||||
if (extension.isEmpty())
|
||||
target = HostOsInfo::withExecutableSuffix(ti.target);
|
||||
target = OsSpecificAspects::withExecutableSuffix(Abi::abiOsToOsType(tc->targetAbi().os()), ti.target);
|
||||
else
|
||||
target = ti.target + extension;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user