QtSupport: Pass empty device root for local Qt

Fixes: QTCREATORBUG-28680
Change-Id: Id90b6b9427d4b85ebc4e9f097dfdd996062d4c85
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
hjk
2023-01-23 11:53:10 +01:00
parent 9938fffe06
commit c3e44bb3bb

View File

@@ -1123,7 +1123,8 @@ void QtVersion::ensureMkSpecParsed() const
Environment env = d->m_qmakeCommand.deviceEnvironment();
setupQmakeRunEnvironment(env);
option.environment = env.toProcessEnvironment();
option.device_root = d->m_qmakeCommand.withNewPath("/").toFSPathString();
if (d->m_qmakeCommand.needsDevice())
option.device_root = d->m_qmakeCommand.withNewPath("/").toFSPathString(); // Empty for host!
ProMessageHandler msgHandler(true);
ProFileCacheManager::instance()->incRefCount();
QMakeParser parser(ProFileCacheManager::instance()->cache(), &vfs, &msgHandler);