forked from qt-creator/qt-creator
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:
@@ -62,7 +62,10 @@ RemoteLinuxRunConfiguration::RemoteLinuxRunConfiguration(Target *target, Id id)
|
|||||||
const FilePath localExecutable = bti.targetFilePath;
|
const FilePath localExecutable = bti.targetFilePath;
|
||||||
DeployableFile depFile = target->deploymentData().deployableForLocalFile(localExecutable);
|
DeployableFile depFile = target->deploymentData().deployableForLocalFile(localExecutable);
|
||||||
|
|
||||||
exeAspect->setExecutable(FilePath::fromString(depFile.remoteFilePath()));
|
if (depFile.localFilePath().needsDevice()) // a full remote build
|
||||||
|
exeAspect->setExecutable(depFile.localFilePath());
|
||||||
|
else
|
||||||
|
exeAspect->setExecutable(FilePath::fromString(depFile.remoteFilePath()));
|
||||||
symbolsAspect->setFilePath(localExecutable);
|
symbolsAspect->setFilePath(localExecutable);
|
||||||
|
|
||||||
const IDeviceConstPtr buildDevice = BuildDeviceKitAspect::device(target->kit());
|
const IDeviceConstPtr buildDevice = BuildDeviceKitAspect::device(target->kit());
|
||||||
|
Reference in New Issue
Block a user