Skip to content

Initial port to WASM + Smoke test CI.#158

Merged
zzcgumn merged 20 commits into
developfrom
wasm_ci
May 31, 2026
Merged

Initial port to WASM + Smoke test CI.#158
zzcgumn merged 20 commits into
developfrom
wasm_ci

Conversation

@zzcgumn
Copy link
Copy Markdown
Collaborator

@zzcgumn zzcgumn commented May 30, 2026

Closes #118

ed2k and others added 16 commits March 9, 2022 20:53
src> make && make install
examples> make && node AnalysePlayBin.js
old Make system gone
Enable hermetic Emscripten via the emsdk toolchain and switch project WASM config to use it. .bazelrc now configures the emsdk platform/cpu for --config=wasm; BUILD.bazel's wasm config_setting uses values.cpu=wasm. MODULE.bazel adds the emsdk dependency and registers its toolchains. CPPVARIABLES.bzl updates WASM cppopts (adds -fexceptions, removes -mtune=generic). examples/BUILD.bazel now loads emsdk wasm_rules and replaces custom em++ genrules with wasm_cc_binary targets, and updates WASM link options (exceptions and memory flags).
Revise wasm_build.md to remove manual Emscripten install instructions and note that Bazel will automatically download and configure a hermetic emscripten toolchain. Update BUILD.bazel example to use values={"cpu":"wasm"} and mark the code block as python. Adjust CPPVARIABLES and flags (remove -mtune=generic, add -fexceptions). Update .bazelrc examples to use @emsdk//:platform_wasm, add host_cxxopt and compilation_mode=opt. Remove the em++ not found troubleshooting and the recommendation to make em++ explicitly available in CI. Update the compilation flags table to include -fexceptions, -sALLOW_MEMORY_GROWTH=1 and -sINITIAL_MEMORY=268435456.
Rename analyse_play_bin target to AnalysePlayBin and update WASM binary target names and filegroup references; adjust analyse_play_bin.cpp error handling for WASM builds to avoid ErrorMessage and print error code instead; remove deprecated examples/dds.cpp. Also remove -Wno-character-conversion from DDS CPPOPTS. Revise docs/wasm_build.md to use the new WASM target names, simplify available targets list, and trim/clarify WASM-related notes and output instructions.
@zzcgumn zzcgumn self-assigned this May 30, 2026
@zzcgumn
Copy link
Copy Markdown
Collaborator Author

zzcgumn commented May 30, 2026

@ed2k, I could not figure a way to add these two commits to your branch. I am happy to merge these changes if you can confirm that you are happy that this is good enough CI coverage for now. You can either add the last two commits to your branch or we can merge this branch. I don't mind which way we do it.

@zzcgumn zzcgumn mentioned this pull request May 30, 2026
@ed2k
Copy link
Copy Markdown
Contributor

ed2k commented May 30, 2026

@ed2k, I could not figure a way to add these two commits to your branch. I am happy to merge these changes if you can confirm that you are happy that this is good enough CI coverage for now. You can either add the last two commits to your branch or we can merge this branch. I don't mind which way we do it.

either way works for me. calling the generated js is good enough.

@zzcgumn zzcgumn mentioned this pull request May 31, 2026
@zzcgumn zzcgumn merged commit 335175b into develop May 31, 2026
4 checks passed
@zzcgumn zzcgumn deleted the wasm_ci branch May 31, 2026 12:01
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