forked from qt-creator/qt-creator
Debugger/JS Code model: Set environment for QML tools correctly.
Set complete build environment (MinGW). Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com> Reviewed-by: Kai Koehne <kai.koehne@nokia.com> Task-number: QTCREATORBUG-2883
This commit is contained in:
@@ -1638,6 +1638,19 @@ bool QtVersion::hasQmlObserver() const
|
||||
return m_hasQmlObserver;
|
||||
}
|
||||
|
||||
Utils::Environment QtVersion::qmlToolsEnvironment() const
|
||||
{
|
||||
Utils::Environment environment = Utils::Environment::systemEnvironment();
|
||||
addToEnvironment(environment);
|
||||
|
||||
// add preferred toolchain, as that is how the tools are built, compare QtVersion::buildDebuggingHelperLibrary
|
||||
QList<QSharedPointer<ProjectExplorer::ToolChain> > alltc = toolChains();
|
||||
if (!alltc.isEmpty())
|
||||
alltc.first().data()->addToEnvironment(environment);
|
||||
|
||||
return environment;
|
||||
}
|
||||
|
||||
QString QtVersion::debuggingHelperLibrary() const
|
||||
{
|
||||
QString qtInstallData = versionInfo().value("QT_INSTALL_DATA");
|
||||
|
||||
Reference in New Issue
Block a user