more process parameters passed as array literal

This commit is contained in:
Basile Burg 2020-07-09 07:42:30 +02:00
parent 1e272befc0
commit 833e3d98cf
2 changed files with 3 additions and 9 deletions

View File

@ -53,9 +53,7 @@ begin
if exeInSysPath(p.Executable) then
begin
p.Parameters.Add('-u');
p.Parameters.Add(fname1);
p.Parameters.Add(fname2);
p.Parameters.AddStrings(['-u', fname1, fname2]);
p.Options:= [poUsePipes];
p.ShowWindow:= swoHIDE;
p.Execute;

View File

@ -3144,14 +3144,10 @@ begin
if fCovModUt then
dmdproc.Parameters.Add('-cov');
// NOTE: see #258, allows to test easily a module when hacking phobos.
dmdproc.Parameters.Add('-version=StdUnittest');
dmdproc.Parameters.Add('-version=test_single_module');
dmdproc.Parameters.AddStrings(['-version=StdUnittest', '-version=test_single_module']);
end
else
begin
dmdproc.Parameters.Add('-version=runnable_module');
dmdproc.Parameters.Add('-version=run_single_module');
end;
dmdproc.Parameters.AddStrings(['-version=runnable_module', '-version=run_single_module']);
if fRunnablesOptions.detectLibraries then
LibMan.getLibsForSource(fDoc.Lines, dmdproc.Parameters, dmdproc.Parameters)