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:
Filippo Cucchetto
2020-02-17 00:47:09 +01:00
parent a640eb8560
commit 1ccb2b36e2

View File

@@ -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;