forked from qt-creator/qt-creator
qmlls: use hostbinpath instead of binpath
Amends a737828d7d
that used the binPath
instead of the hostBinPath() when constructing the path to qmlls. This
allows to run qmlls on a Boot2Qt project with the correct Qml import
paths.
Together with the above-mentioned commit, this fixes the undismissable
warnings from QTBUG-114697 as QtC now starts the correct qmlls
executable with the correct import paths on boot2qt projects.
Fixes: QTBUG-114697
Change-Id: I1123d69a923f595869b980de1a0daf266cf2bc80
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -121,7 +121,7 @@ static CommandLine commandLineForQmlls(const Project *project)
|
||||
auto [executable, version]
|
||||
= qmllsSettings()->m_useLatestQmlls
|
||||
? evaluateLatestQmlls()
|
||||
: std::make_pair(qtVersion->binPath() / "qmlls", qtVersion->qtVersion());
|
||||
: std::make_pair(qtVersion->hostBinPath() / "qmlls", qtVersion->qtVersion());
|
||||
|
||||
CommandLine result{executable, {}};
|
||||
|
||||
|
Reference in New Issue
Block a user