Steps to reproduce:
- Create empty Unity project in Unity 6.5 or newer
- Install package "com.unity.web.stripping-tool@1.3.0"
- Switch Platform to "Web"
- In "Player Settings > Publishing Settings" enable
- Enable Submodule Stripping Compatibility
- Native C/C++ Multithreading
- Build project
- Open "Window > Web Optimization > Submodule Stripping"
- Select the last build
- Set "Missing Submodule Error Handling" to "Log Error"
- Select any submodule for stripping
- Click on "Strip & Run"
Actual results: The build runs without errors in the console.
Expected results: There are multiple errors in the console that "function.json" and "labels.json" can not be loaded.
Reproducible with versions: 6000.5, 6000.6, 6000.7
Not reproducible with versions: 6000.3, 6000.4
Can’t test with versions: 6000.0 (does not support submodule stripping package)
Tested on (OS): Windows 11
Notes:
- This is an issue caused by the Emscripten 4 update. Module["ENVIRONMENT_IS_PTHREAD"] was renamed to just ENVIRONMENT_IS_PTHREAD