QMakeProjectManager: Fix mkspec path for remote devices

Task-number: QTCREATORBUG-32325
Change-Id: I3169f56acb5e8e94004825cfe55e8614edb9d498
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Marcus Tillmanns
2025-01-16 10:50:42 +01:00
parent 574d598120
commit 936aa37625

View File

@@ -127,9 +127,10 @@ QString QMakeStep::allArguments(const QtVersion *v, ArgumentFlags flags) const
}
}
}
const QString specArg = mkspec();
const FilePath specArg = FilePath::fromString(mkspec());
QTC_CHECK(specArg.isSameDevice(v->qmakeFilePath()));
if (!userProvidedMkspec && !specArg.isEmpty())
arguments << "-spec" << QDir::toNativeSeparators(specArg);
arguments << "-spec" << specArg.path();
// Find out what flags we pass on to qmake
arguments << bc->configCommandLineArguments();