forked from qt-creator/qt-creator
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:
@@ -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() { }
|
||||
|
||||
Reference in New Issue
Block a user