forked from qt-creator/qt-creator
ProjectExplorer: Use Utils::CommandLine in ProjectExplorer::Runnable
Change-Id: Id965f1f9047dcbc3ea5c9ddaa550d12668cf8ae6 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -92,12 +92,10 @@ public:
|
||||
{
|
||||
setStarter([this, runControl] {
|
||||
const Target *target = runControl->target();
|
||||
const CommandLine cmd(
|
||||
cmakeFilePath(target),
|
||||
runControl->runConfiguration()->aspect<StringAspect>()->value(),
|
||||
CommandLine::Raw);
|
||||
Runnable r;
|
||||
r.setCommandLine(cmd);
|
||||
r.command = {cmakeFilePath(target),
|
||||
runControl->runConfiguration()->aspect<StringAspect>()->value(),
|
||||
CommandLine::Raw};
|
||||
r.workingDirectory = target->activeBuildConfiguration()->buildDirectory();
|
||||
r.environment = target->activeBuildConfiguration()->environment();
|
||||
SimpleTargetRunner::doStart(r, {});
|
||||
|
||||
Reference in New Issue
Block a user