QtSupport: Do not prepend QT_HOST_BINS to PATH

Do not unconditionally prepend QT_HOST_BINS to PATH as part of the Kit
setup.

Prepend this directory to PATH in the Qmake- and GenericBuildConfigurations
instead.

Task-number: QTCREATORBUG-18714
Change-Id: I1c1d1362105b82f9c369d989e90d4f7079c2c9a2
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Tobias Hunger
2017-10-17 13:48:24 +02:00
parent 813212396b
commit 613519c3d5
3 changed files with 8 additions and 1 deletions

View File

@@ -759,6 +759,9 @@ BuildConfiguration::BuildType QmakeBuildConfiguration::buildType() const
void QmakeBuildConfiguration::addToEnvironment(Environment &env) const
{
prependCompilerPathToEnvironment(env);
const BaseQtVersion *qt = QtKitInformation::qtVersion(target()->kit());
if (qt)
env.prependOrSetPath(qt->binPath().toString());
}
QmakeBuildConfiguration::LastKitState::LastKitState() { }