ProjectExplorer: Adapt default make command to actual device

Change-Id: I40b9f0ee85b91b95d0b16e62e20c7c8c0ec8b77e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2021-04-29 13:13:44 +02:00
parent 31f6b6fbe3
commit 574de2eb2a

View File

@@ -183,11 +183,11 @@ static const QList<ToolChain *> preferredToolChains(const Kit *kit)
FilePath MakeStep::defaultMakeCommand() const
{
const Utils::Environment env = makeEnvironment();
const Environment env = makeEnvironment();
for (const ToolChain *tc : preferredToolChains(kit())) {
FilePath make = tc->makeCommand(env);
if (!make.isEmpty())
return make;
return mapFromBuildDeviceToGlobalPath(make);
}
return {};
}