From 1ccb2b36e2be65558b07a021bf2c595e923766e1 Mon Sep 17 00:00:00 2001 From: Filippo Cucchetto Date: Mon, 17 Feb 2020 00:47:09 +0100 Subject: 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 --- src/plugins/nim/project/nimblebuildsystem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/nim') diff --git a/src/plugins/nim/project/nimblebuildsystem.cpp b/src/plugins/nim/project/nimblebuildsystem.cpp index e9abfe9601..537000e357 100644 --- a/src/plugins/nim/project/nimblebuildsystem.cpp +++ b/src/plugins/nim/project/nimblebuildsystem.cpp @@ -149,8 +149,8 @@ void NimbleBuildSystem::updateProject() QList targets = Utils::transform(m_metadata.bin, [&](const QString &bin){ BuildTargetInfo info = {}; info.displayName = bin; - info.targetFilePath = binDir.pathAppended(HostOsInfo::withExecutableSuffix(bin)); - info.projectFilePath = srcDir.pathAppended(bin).stringAppended(".nim"); + info.targetFilePath = binDir.pathAppended(bin); + info.projectFilePath = projectFilePath(); info.workingDirectory = binDir; info.buildKey = bin; return info; -- cgit v1.2.3