forked from qt-creator/qt-creator
ProjectExplorer: Adapt default make command to actual device
Change-Id: I40b9f0ee85b91b95d0b16e62e20c7c8c0ec8b77e Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -183,11 +183,11 @@ static const QList<ToolChain *> preferredToolChains(const Kit *kit)
|
|||||||
|
|
||||||
FilePath MakeStep::defaultMakeCommand() const
|
FilePath MakeStep::defaultMakeCommand() const
|
||||||
{
|
{
|
||||||
const Utils::Environment env = makeEnvironment();
|
const Environment env = makeEnvironment();
|
||||||
for (const ToolChain *tc : preferredToolChains(kit())) {
|
for (const ToolChain *tc : preferredToolChains(kit())) {
|
||||||
FilePath make = tc->makeCommand(env);
|
FilePath make = tc->makeCommand(env);
|
||||||
if (!make.isEmpty())
|
if (!make.isEmpty())
|
||||||
return make;
|
return mapFromBuildDeviceToGlobalPath(make);
|
||||||
}
|
}
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user