Skip to content

Improved mechanism for compilation exit code #1147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
halogentlepersuasion opened this issue Mar 24, 2025 · 1 comment
Open

Improved mechanism for compilation exit code #1147

halogentlepersuasion opened this issue Mar 24, 2025 · 1 comment
Assignees

Comments

@halogentlepersuasion
Copy link
Contributor

The current mechanism for determining the exit code at the end of compilation is based on the final compilation output, which is a pair of strings corresponding to the stdout and stderr output. If the final stderr output starts with ###, which is printed at the beginning of error messages, the compiler will have a non-zero exit code. (See condition and its application). Most failures in the compilation stages cause such an error message. Separately to this, all current success cases provide non-empty stdout output and all current failure cases provide empty stdout output.
In general, it would be nice if this mechanism was not so dependent on this specific prefix, and the final compilation output was more explicit about which exit code applied.

@ordinarymath
Copy link
Contributor

I should be able to do this in since I'm going to be touching nearby code for #355 (comment)

@ordinarymath ordinarymath self-assigned this Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants