opendylan icon indicating copy to clipboard operation
opendylan copied to clipboard

Console compiler: exit with error status for serious warnings

Open cgay opened this issue 3 years ago • 2 comments

Console compiler: exit with error status for serious warnings

Issue #1373

cgay avatar Aug 08 '22 00:08 cgay

Why not add a command-line option to suppress this new exit status behavior, which could then be used when building libraries that deliberately induce serious warnings (such as the common-dylan-test-suite)?

housel avatar Aug 09 '22 16:08 housel

I was planning to add that flag in a later commit (please comment on the bug if you have preferences for what it should look like).

I would like to be able to detect new serious warnings in the test suite and Open Dylan code, which is why I prefer to comment out those two tests. I could make the exit code be the total number of serious warnings (maxing out at 127, I guess, if that's a shell limitation...127 should be enough serious warnings for anyone) and then callers who expect non-zero could compare with that?

cgay avatar Aug 09 '22 17:08 cgay