Skip to content

Conversation

@copybara-service
Copy link

@copybara-service copybara-service bot commented Oct 13, 2025

Replace --emit_fail_as_assert flag with --emit_assert.

The name for this flag was quite bad as it implied that there may be some other cases where asserts could still be emitted. Instead change to the much more accurate "--emit_assert" flag to make clear that setting this to false causes all asserts to be suppressed.

The ir_converter_main binary will emit a warning if this flag is passed (ignoring the value) and the standard bazel rules for XLS will automatically swap --emit_fail_as_assert to --emit_assert (and print a warning).

@copybara-service copybara-service bot force-pushed the test_818806271 branch 5 times, most recently from 9f3b11d to c2b2a89 Compare October 15, 2025 22:01
The name for this flag was quite bad as it implied that there may be some other cases where asserts could still be emitted. Instead change to the much more accurate "--emit_assert" flag to make clear that setting this to false causes **all** asserts to be suppressed.

The ir_converter_main binary will emit a warning if this flag is passed (ignoring the value) and the standard bazel rules for XLS will automatically swap --emit_fail_as_assert to --emit_assert (and print a warning).

PiperOrigin-RevId: 819958156
@copybara-service copybara-service bot merged commit d2feba1 into main Oct 15, 2025
@copybara-service copybara-service bot deleted the test_818806271 branch October 15, 2025 23:27
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.

2 participants