Skip to content

Conversation

@jkotas
Copy link
Member

@jkotas jkotas commented Dec 7, 2025

The undocumented -ERR mode is meant to ignore errors and allow produce invalid binaries for test purposes. Print the errors as warnings in this mode so that they do not fail the build.

The undocumented -ERR mode is meant to ignore errors and allow produce invalid binaries
for test purposes. Print the errors as warnings in this mode so that
they do not fail the build.
Copilot AI review requested due to automatic review settings December 7, 2025 06:40
@jkotas jkotas requested a review from jkoritzinsky December 7, 2025 06:40
@jkotas
Copy link
Member Author

jkotas commented Dec 7, 2025

Contributes to #122056

@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @JulieLeeMSFT
See info in area-owners.md if you want to be subscribed.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements a fix for the undocumented -ERR mode in ilasm, which is designed to allow production of invalid binaries for testing purposes. The change ensures that errors are printed as warnings in this mode to prevent build failures.

  • Modified the AsmParse::error() function to output "warning :" instead of "error :" when the -ERR flag is enabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant