forked from qt-creator/qt-creator
ProjectExplorer: Consolidate adding Qt host binaries to path
Change-Id: Ia301ae016d1d79e55040003280360aba095f2c03 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -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
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user