ProjectExplorer: Let the ProcessStep figure out relative paths

The WorkingDir may contain macros that still need to be expanded
so we need to tell it what we wan't as parent path.

Change-Id: I7af8115196b70b5a02217d5709bf0a0cc532ce69
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Marcus Tillmanns
2024-10-07 16:28:19 +02:00
parent 826bf2f7f6
commit cca7efd146

View File

@@ -464,9 +464,7 @@ public:
FilePath wd = FilePath::fromUserInput(bs["workingDirectory"].toString());
if (wd.isEmpty())
wd = "%{ActiveProject:BuildConfig:Path}";
else if (wd.isRelativePath())
wd = project()->projectDirectory().resolvePath(wd);
step->setWorkingDirectory(wd);
step->setWorkingDirectory(wd, project()->projectDirectory());
steps->appendStep(step);
}
initializeExtraInfo(extraInfos);