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:
Sami Shalayel
2024-12-05 11:30:45 +01:00
parent c1f432ed12
commit aa709cbbdb

View File

@@ -121,7 +121,7 @@ static CommandLine commandLineForQmlls(const Project *project)
auto [executable, version] auto [executable, version]
= qmllsSettings()->m_useLatestQmlls = qmllsSettings()->m_useLatestQmlls
? evaluateLatestQmlls() ? evaluateLatestQmlls()
: std::make_pair(qtVersion->binPath() / "qmlls", qtVersion->qtVersion()); : std::make_pair(qtVersion->hostBinPath() / "qmlls", qtVersion->qtVersion());
CommandLine result{executable, {}}; CommandLine result{executable, {}};