Use Reader mode for clangbackend

It doesn't look as there would be any write to this process
from Creator side.

Change-Id: I2c16a8ba28d8724d434d3c0f95c7b52616121b4b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Jarek Kobus
2021-12-20 13:31:07 +01:00
parent 51209b991a
commit eabfc443a7

View File

@@ -70,7 +70,7 @@ std::future<QProcessUniquePointer> ProcessCreator::createProcess() const
{ {
return std::async(std::launch::async, [&] { return std::async(std::launch::async, [&] {
checkIfProcessPathExists(); checkIfProcessPathExists();
auto process = QProcessUniquePointer(new QtcProcess(ProcessMode::Writer)); auto process = QProcessUniquePointer(new QtcProcess());
process->setProcessChannelMode(QProcess::ForwardedChannels); process->setProcessChannelMode(QProcess::ForwardedChannels);
process->setEnvironment(processEnvironment()); process->setEnvironment(processEnvironment());
process->setCommand(CommandLine(FilePath::fromString(m_processPath), m_arguments)); process->setCommand(CommandLine(FilePath::fromString(m_processPath), m_arguments));