mirror of https://gitlab.com/basile.b/dexed.git
add new version idents for the runnables, close #276
This commit is contained in:
parent
24e3c04ec2
commit
ba16d4cc42
|
@ -2935,6 +2935,7 @@ begin
|
||||||
dmdproc.Parameters.Add('-main');
|
dmdproc.Parameters.Add('-main');
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
dmdproc.Parameters.Add('-version=single_module');
|
||||||
if unittest then
|
if unittest then
|
||||||
begin
|
begin
|
||||||
if not fRunnablesOptions.detectMain then
|
if not fRunnablesOptions.detectMain then
|
||||||
|
@ -2944,8 +2945,15 @@ begin
|
||||||
dmdproc.Parameters.Add('-cov');
|
dmdproc.Parameters.Add('-cov');
|
||||||
// NOTE: see #258, allows to test easily a module when hacking phobos.
|
// NOTE: see #258, allows to test easily a module when hacking phobos.
|
||||||
dmdproc.Parameters.Add('-version=StdUnittest');
|
dmdproc.Parameters.Add('-version=StdUnittest');
|
||||||
|
dmdproc.Parameters.Add('-version=test_single_module');
|
||||||
end
|
end
|
||||||
else dmdproc.Parameters.Add('-version=runnable_module');
|
else
|
||||||
|
begin
|
||||||
|
// back compat, see https://github.com/BBasile/Coedit/issues/276
|
||||||
|
dmdproc.Parameters.Add('-version=runnable_module');
|
||||||
|
|
||||||
|
dmdproc.Parameters.Add('-version=run_single_module');
|
||||||
|
end;
|
||||||
|
|
||||||
if fRunnablesOptions.detectLibraries then
|
if fRunnablesOptions.detectLibraries then
|
||||||
LibMan.getLibsForSource(fDoc.Lines, dmdproc.Parameters, dmdproc.Parameters)
|
LibMan.getLibsForSource(fDoc.Lines, dmdproc.Parameters, dmdproc.Parameters)
|
||||||
|
|
Loading…
Reference in New Issue