forked from qt-creator/qt-creator
ProjectExplorer: Make ToolChain::makeCommand return a FileName
... instead of a QString. This is in line with the qmakeCommand(). Change-Id: I617cb03522be5ebaac6cab58a3606f659fddb833 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -113,11 +113,10 @@ void NimToolChain::addToEnvironment(Environment &env) const
|
||||
env.prependOrSetPath(compilerCommand().parentDir().toString());
|
||||
}
|
||||
|
||||
QString NimToolChain::makeCommand(const Environment &env) const
|
||||
FileName NimToolChain::makeCommand(const Environment &env) const
|
||||
{
|
||||
QString make = "make";
|
||||
FileName tmp = env.searchInPath(make);
|
||||
return tmp.isEmpty() ? make : tmp.toString();
|
||||
const FileName tmp = env.searchInPath("make");
|
||||
return tmp.isEmpty() ? FileName::fromString("make") : tmp;
|
||||
}
|
||||
|
||||
FileName NimToolChain::compilerCommand() const
|
||||
|
||||
Reference in New Issue
Block a user