更新微信sdk到v1.0.25后团结引擎1.3.5微信小游戏打包,经常出现emcc error打包失败,不清楚是否与这次升级带来的编译参数的改变有关?原来的sdk版本是2024-11-14 打包出错堆栈为:
emcc: error: 'C:/UnityEditor/2022.3.48t2/Editor/Data/PlaybackEngines/WeixinMiniGameSupport/BuildTools/Emscripten/binaryen\bin\wasm-opt --strip-dwarf --post-emscripten -O3 --low-memory-unused --zero-filled-memory --one-caller-inline-max-function-size=200 --strip-debug --strip-producers Library/Bee/artifacts/WeixinMiniGame/build/debug_WebGL_wasm/build.wasm -o Library/Bee/artifacts/WeixinMiniGame/build/debug_WebGL_wasm/build.wasm -g --mvp-features' failed (returned 1)
*** Tundra build failed (63.99 seconds - 0:01:03), 100 items updated, 877 evaluated
Building Library\Bee\artifacts\WeixinMiniGame\build\debug_WebGL_wasm\build.js failed with output:
emcc: warning: running limited binaryen optimizations because DWARF info requested (or indirectly required) [-Wlimited-postlink-optimizations]
Fatal: SmallSet does not support changes while iterating
emcc: error: 'C:/UnityEditor/2022.3.48t2/Editor/Data/PlaybackEngines/WeixinMiniGameSupport/BuildTools/Emscripten/binaryen\bin\wasm-opt --strip-dwarf --post-emscripten -O3 --low-memory-unused --zero-filled-memory --one-caller-inline-max-function-size=200 --strip-debug --strip-producers Library/Bee/artifacts/WeixinMiniGame/build/debug_WebGL_wasm/build.wasm -o Library/Bee/artifacts/WeixinMiniGame/build/debug_WebGL_wasm/build.wasm -g --mvp-features' failed (returned 1)