forked from qt-creator/qt-creator
Nim: Fix build broken target info on Windows
There's no need for adding .exe suffix. Further more project file path is easier obtained through projectFilePath() Change-Id: I3f512dfea1ca32b5f63dfcdd19cac112ef5e3c1e Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -149,8 +149,8 @@ void NimbleBuildSystem::updateProject()
|
|||||||
QList<BuildTargetInfo> targets = Utils::transform(m_metadata.bin, [&](const QString &bin){
|
QList<BuildTargetInfo> targets = Utils::transform(m_metadata.bin, [&](const QString &bin){
|
||||||
BuildTargetInfo info = {};
|
BuildTargetInfo info = {};
|
||||||
info.displayName = bin;
|
info.displayName = bin;
|
||||||
info.targetFilePath = binDir.pathAppended(HostOsInfo::withExecutableSuffix(bin));
|
info.targetFilePath = binDir.pathAppended(bin);
|
||||||
info.projectFilePath = srcDir.pathAppended(bin).stringAppended(".nim");
|
info.projectFilePath = projectFilePath();
|
||||||
info.workingDirectory = binDir;
|
info.workingDirectory = binDir;
|
||||||
info.buildKey = bin;
|
info.buildKey = bin;
|
||||||
return info;
|
return info;
|
||||||
|
Reference in New Issue
Block a user