Skip to content

[bazel] add support for enabling relaxed SIMD in wasm_cc_binary#1728

Open
DoDoENT wants to merge 2 commits into
emscripten-core:mainfrom
DoDoENT:feature/relaxed-simd-wasm-cc-binary
Open

[bazel] add support for enabling relaxed SIMD in wasm_cc_binary#1728
DoDoENT wants to merge 2 commits into
emscripten-core:mainfrom
DoDoENT:feature/relaxed-simd-wasm-cc-binary

Conversation

@DoDoENT

@DoDoENT DoDoENT commented Jun 27, 2026

Copy link
Copy Markdown
Collaborator

It would probably be more elegant to reuse the existing simd attribute and change it's type from boolean into string enum (similar like it's for threads), but that would be a breaking change so I decided to add additional boolean acknowlidging that simd=False, relaxed_simd=True makes no sense and will also enable simd as relaxed_simd implies simd.

If you are comfortable with me breaking the API, I'd be happy to do it (see how I did it in my wrapper)

@sbc100

sbc100 commented Jun 28, 2026

Copy link
Copy Markdown
Collaborator

This type of breakage seem reasonable to me. Seems easy enough for folks to fixup when the upgrade bazel, right?

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