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

@@ -35,7 +35,6 @@
#include <projectexplorer/projectexplorerconstants.h>
#include <projectexplorer/target.h>
#include <qtsupport/baseqtversion.h>
#include <qtsupport/qtkitinformation.h>
#include <utils/aspects.h>
@@ -91,10 +90,7 @@ GenericBuildConfigurationFactory::GenericBuildConfigurationFactory()
void GenericBuildConfiguration::addToEnvironment(Utils::Environment &env) const
{
prependCompilerPathToEnvironment(kit(), env);
const QtSupport::BaseQtVersion *qt = QtSupport::QtKitAspect::qtVersion(kit());
if (qt)
env.prependOrSetPath(qt->hostBinPath().toString());
QtSupport::QtKitAspect::addHostBinariesToPath(kit(), env);
}
} // namespace Internal