Skip to content

Conversation

copybara-service[bot]
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 2 times, most recently from 8f36230 to 2d9f565 Compare October 13, 2025 21:37
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: 818806271
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.

1 participant