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:
@@ -37,6 +37,8 @@
|
||||
#include <projectexplorer/projectexplorerconstants.h>
|
||||
#include <projectexplorer/target.h>
|
||||
#include <projectexplorer/toolchain.h>
|
||||
#include <qtsupport/baseqtversion.h>
|
||||
#include <qtsupport/qtkitinformation.h>
|
||||
|
||||
#include <utils/mimetypes/mimedatabase.h>
|
||||
#include <utils/pathchooser.h>
|
||||
@@ -199,6 +201,9 @@ BuildConfiguration::BuildType GenericBuildConfiguration::buildType() const
|
||||
void GenericBuildConfiguration::addToEnvironment(Utils::Environment &env) const
|
||||
{
|
||||
prependCompilerPathToEnvironment(env);
|
||||
const QtSupport::BaseQtVersion *qt = QtSupport::QtKitInformation::qtVersion(target()->kit());
|
||||
if (qt)
|
||||
env.prependOrSetPath(qt->binPath().toString());
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user