We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a9d8f0 commit a95dfa6Copy full SHA for a95dfa6
platform/web/detect.py
@@ -285,6 +285,9 @@ def configure(env: "SConsEnvironment"):
285
env.Append(CCFLAGS=["-sSUPPORT_LONGJMP='wasm'"])
286
env.Append(LINKFLAGS=["-sSUPPORT_LONGJMP='wasm'"])
287
288
+ # Run wasm-opt binaryen maximum shrink options
289
+ env.Append(LINKFLAGS=["-sBINARYEN_EXTRA_PASSES='-Oz'"])
290
+
291
# Allow increasing memory buffer size during runtime. This is efficient
292
# when using WebAssembly (in comparison to asm.js) and works well for
293
# us since we don't know requirements at compile-time.
0 commit comments