Skip to content
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

improve and unify logging for sanity checks #14379

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bonzini
Copy link
Collaborator

@bonzini bonzini commented Mar 17, 2025

The logic for compiler sanity checks is duplicated across all languages. Improve it across the board by introducing a new helper function that handles cross compilation, logging and exception reporting.

@bonzini bonzini added this to the 1.8 milestone Mar 17, 2025
@bonzini bonzini force-pushed the fix14373 branch 2 times, most recently from d7128f0 to 211a5ac Compare March 17, 2025 14:49
@bonzini bonzini marked this pull request as ready for review March 17, 2025 15:03
@bonzini bonzini requested a review from dcbaker as a code owner March 17, 2025 15:03
@thesamesam
Copy link
Member

I think it looks fine apart from what Eli's mentioned.

Particularly if using an exe_wrapper, it can be useful to have output
logged for debugging.

Signed-off-by: Paolo Bonzini <[email protected]>
Avoid reinventing the wheel and instead use a single helper, taking care
of logging and cross compilation.

Fixes: mesonbuild#14373
Signed-off-by: Paolo Bonzini <[email protected]>
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

Successfully merging this pull request may close these issues.

5 participants