fix(compiler): restore poUsePipes for FPC TProcess in RunProcess
The poUsePipes option was removed during self-hosting adaptation since the Blaise RTL TProcess always uses pipes. FPC's TProcess requires the option explicitly, causing an access violation on Output.Read when compiling with --output.
This commit is contained in:
parent
da857ecc8e
commit
eacaf1e192
|
|
@ -274,7 +274,9 @@ begin
|
|||
Proc := TProcess.Create(nil);
|
||||
try
|
||||
Proc.Executable := AExe;
|
||||
{ Blaise RTL TProcess always uses pipes; no Options property needed }
|
||||
{$IFDEF FPC}
|
||||
Proc.Options := [poUsePipes, poStderrToOutPut];
|
||||
{$ENDIF}
|
||||
for I := 0 to AArgs.Count - 1 do
|
||||
Proc.Parameters.Add(AArgs.Strings[I]);
|
||||
Proc.Execute;
|
||||
|
|
|
|||
Loading…
Reference in a new issue