This commit in the libjxl repo enables -pthread whenever Emscripten is detected.
On building this version of JXL, our WASM files are generated, the decoder finishes executing correctly (as seen in the console debug statement), but the JS glue code fails with the following error:
Commenting out the section in CMakeLists.txt where JXL enables -pthread fixes everything.
This commit in the libjxl repo enables
-pthread
whenever Emscripten is detected.On building this version of JXL, our WASM files are generated, the decoder finishes executing correctly (as seen in the console debug statement), but the JS glue code fails with the following error:
Commenting out the section in
CMakeLists.txt
where JXL enables-pthread
fixes everything.