forked from qt-creator/qt-creator
QMake: Make sure executable targets have executable suffixes
Task-number: QTCREATORBUG-9022 Change-Id: Id885a81228090a18128b8d145b50d89294db31c2 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -1347,8 +1347,11 @@ QString QmakeProject::executableFor(const QmakeProFile *file)
|
|||||||
&& file->variableValue(Variable::Config).contains("app_bundle")) {
|
&& file->variableValue(Variable::Config).contains("app_bundle")) {
|
||||||
target = ti.target + ".app/Contents/MacOS/" + ti.target;
|
target = ti.target + ".app/Contents/MacOS/" + ti.target;
|
||||||
} else {
|
} else {
|
||||||
QString extension = file->singleVariableValue(Variable::TargetExt);
|
const QString extension = file->singleVariableValue(Variable::TargetExt);
|
||||||
target = ti.target + extension;
|
if (extension.isEmpty())
|
||||||
|
target = HostOsInfo::withExecutableSuffix(ti.target);
|
||||||
|
else
|
||||||
|
target = ti.target + extension;
|
||||||
}
|
}
|
||||||
return QDir(destDirFor(ti).toString()).absoluteFilePath(target);
|
return QDir(destDirFor(ti).toString()).absoluteFilePath(target);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user