Skip to content

Improve WebAssembly detection when using Bazel.#1129

Closed
PiotrSikora wants to merge 1 commit intoabseil:masterfrom
PiotrSikora:wasm32
Closed

Improve WebAssembly detection when using Bazel.#1129
PiotrSikora wants to merge 1 commit intoabseil:masterfrom
PiotrSikora:wasm32

Conversation

@PiotrSikora
Copy link
Copy Markdown

@PiotrSikora PiotrSikora commented Mar 11, 2022

Unfortunately, the --cpu values are not standardized, and both
--cpu=wasm and --cpu=wasm32 are used in the wild. Most notably,
Emscripten's Bazel rules use --cpu=wasm, which was missing.

While there, add support for @platforms//cpu:{wasm32,wasm64}.

Signed-off-by: Piotr Sikora piotrsikora@google.com

@PiotrSikora PiotrSikora marked this pull request as ready for review March 11, 2022 07:29
@PiotrSikora
Copy link
Copy Markdown
Author

cc @derekmauro

Unfortunately, the --cpu values are not standardized, and both
--cpu=wasm and --cpu=wasm32 are used in the wild. Most notably,
Emscripten's Bazel rules use --cpu=wasm, which was missing.

While there, add support for @platforms//cpu:{wasm32,wasm64}.

Signed-off-by: Piotr Sikora <piotrsikora@google.com>
@derekmauro
Copy link
Copy Markdown
Member

@PiotrSikora - As per https://github.com/abseil/abseil-cpp/blob/master/CONTRIBUTING.md

If you are a Googler, it is preferable to first create an internal CL and have it reviewed and submitted. The code propagation process will deliver the change to GitHub.

Can you please send an internal CL instead?

@PiotrSikora
Copy link
Copy Markdown
Author

Internal change pushed in eb3db08.

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