GoogleChromeLabs / squoosh

Make images smaller using best-in-class codecs, right in the browser.
https://squoosh.app
Apache License 2.0
21.82k stars 1.53k forks source link

Update JXL to v0.7.0 #1378

Open aryanpingle opened 1 year ago

aryanpingle commented 1 year ago

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:

Without decode pthread

Commenting out the section in CMakeLists.txt where JXL enables -pthread fixes everything.