Fix WASM build issues, improve test coverage and improve cmake files

* Ensure compiler.usethread=0 is set before compilation in single-threaded WASM builds
* Explicitly enable exceptions for the single-threaded WASM module
* Test the single-threaded module in addition to the multi-threaded module in internal and external CI
* Consolidate wasm/tests/CMakeLists.txt into wasm/CMakeLists.txt, fixing the single-threaded benchmark test build which was missing shared linker flags

PiperOrigin-RevId: 901149728
Change-Id: If4946e29e5116610782d218906cf3f5940c1cdd0
This commit is contained in:
Matija Kecman
2026-04-17 01:28:40 -07:00
committed by Copybara-Service
parent f91ce9a627
commit c23b5e8420
5 changed files with 78 additions and 87 deletions
-3
View File
@@ -132,9 +132,6 @@ endif()
if(EMSCRIPTEN)
add_subdirectory(wasm)
if(MUJOCO_BUILD_TESTS_WASM)
add_subdirectory(wasm/tests)
endif()
endif()