ProcessParameters: Allow to set the ProcessMode

Change-Id: I45db21d8785cfaecd8d524b4acda32e352640282
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Dominik Holland
2024-01-23 17:39:14 +01:00
parent ead7afde3d
commit 3ce58e0465
2 changed files with 6 additions and 0 deletions

View File

@@ -190,6 +190,7 @@ bool AbstractProcessStep::setupProcess(Process &process)
// For example Clang uses PWD for paths in debug info, see QTCREATORBUG-23788
Environment envWithPwd = d->m_param.environment();
envWithPwd.set("PWD", workingDir.path());
process.setProcessMode(d->m_param.processMode());
process.setEnvironment(envWithPwd);
process.setCommand({d->m_param.effectiveCommand(), d->m_param.effectiveArguments(),
CommandLine::Raw});