RemoteLinux: Handle already remote local files

This is a bit hackish to support "true" remote builds.

Conceptually, that's more similar to a "local" (a.k.a.
"Desktop" configurations when it comes to (non-)deployment,
but the Desktop runconfigs are currently a bit too tied
to the host system, and we'd like to have the X11 forwarding
that's already available here.

Change-Id: I750b2cfe6b94ec8f60a0e879f3fe44ddaf86072e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
hjk
2022-12-22 13:30:03 +01:00
parent 13cf1ee948
commit cdc88b2571

View File

@@ -62,6 +62,9 @@ RemoteLinuxRunConfiguration::RemoteLinuxRunConfiguration(Target *target, Id id)
const FilePath localExecutable = bti.targetFilePath;
DeployableFile depFile = target->deploymentData().deployableForLocalFile(localExecutable);
if (depFile.localFilePath().needsDevice()) // a full remote build
exeAspect->setExecutable(depFile.localFilePath());
else
exeAspect->setExecutable(FilePath::fromString(depFile.remoteFilePath()));
symbolsAspect->setFilePath(localExecutable);