forked from qt-creator/qt-creator
AppMan: Use device specific tool paths
This makes sure the RunConfiguration is correctly executed on the remote device. For steps executed on the host, a nullptr can be passed as device. Change-Id: Ide5aa5a06402b137494c10108d09a4e7ffa32ec9 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -44,7 +44,8 @@ QString getToolFilePath(const QString &toolname, const Kit *kit, const IDevice::
|
||||
const FilePath path = local ? getToolPathByQtVersion(QtKitAspect::qtVersion(kit))
|
||||
: FilePath(Constants::REMOTE_DEFAULT_BIN_PATH);
|
||||
const QString name = getToolNameByDevice(toolname, device);
|
||||
return !path.isEmpty() ? path.pathAppended(name).toString() : name;
|
||||
const QString filePath = !path.isEmpty() ? path.pathAppended(name).toString() : name;
|
||||
return !device ? filePath : device->filePath(filePath).toUserOutput();
|
||||
}
|
||||
|
||||
QString getToolNameByDevice(const QString &baseName, const QSharedPointer<const IDevice> &device)
|
||||
|
||||
Reference in New Issue
Block a user