ProjectExplorer: Consolidate adding Qt host binaries to path

Change-Id: Ia301ae016d1d79e55040003280360aba095f2c03
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
hjk
2020-11-23 08:17:19 +01:00
parent 12810caea1
commit 27fe442f4f
7 changed files with 25 additions and 34 deletions

View File

@@ -577,24 +577,6 @@ bool BuildConfiguration::isActive() const
return target()->isActive() && target()->activeBuildConfiguration() == this;
}
/*!
* Helper function that prepends the directory containing the C++ toolchain to
* PATH. This is used to in build configurations targeting broken build systems
* to provide hints about which compiler to use.
*/
void BuildConfiguration::prependCompilerPathToEnvironment(Kit *k, Environment &env)
{
const ToolChain *tc = ToolChainKitAspect::cxxToolChain(k);
if (!tc)
return;
const FilePath compilerDir = tc->compilerCommand().parentDir();
if (!compilerDir.isEmpty())
env.prependOrSetPath(compilerDir.toString());
}
///
// IBuildConfigurationFactory
///