aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/nim/project/nimbuildsystem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/nim/project/nimbuildsystem.cpp')
-rw-r--r--src/plugins/nim/project/nimbuildsystem.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/nim/project/nimbuildsystem.cpp b/src/plugins/nim/project/nimbuildsystem.cpp
index 97661644dcd..00d68034eb2 100644
--- a/src/plugins/nim/project/nimbuildsystem.cpp
+++ b/src/plugins/nim/project/nimbuildsystem.cpp
@@ -14,8 +14,6 @@
#include <utils/fileutils.h>
#include <utils/qtcassert.h>
-#include <QStandardPaths>
-
using namespace ProjectExplorer;
using namespace Utils;
@@ -180,10 +178,10 @@ FilePath nimPathFromKit(Kit *kit)
FilePath nimblePathFromKit(Kit *kit)
{
// There's no extra setting for "nimble", derive it from the "nim" path.
- const QString nimbleFromPath = QStandardPaths::findExecutable("nimble");
+ const FilePath nimbleFromPath = FilePath("nimble").searchInPath();
const FilePath nimPath = nimPathFromKit(kit);
const FilePath nimbleFromKit = nimPath.pathAppended("nimble").withExecutableSuffix();
- return nimbleFromKit.exists() ? nimbleFromKit.canonicalPath() : FilePath::fromString(nimbleFromPath);
+ return nimbleFromKit.exists() ? nimbleFromKit.canonicalPath() : nimbleFromPath;
}
bool NimBuildSystem::supportsAction(Node *context, ProjectAction action, const Node *node) const