I used to set custom binaryen arguments for best s...
# webassembly
r
I used to set custom binaryen arguments for best size/performance results. But with 2.2.20-Beta2 these arguments make binaryen crash. Could this be K/Wasm bug?
These are the options I use:
Copy code
binaryenArgs = mutableListOf(
                "--enable-nontrapping-float-to-int",
                "--enable-gc",
                "--enable-reference-types",
                "--enable-exception-handling",
                "--enable-bulk-memory",
                "--inline-functions-with-loops",
                "--traps-never-happen",
                "--fast-math",
                "--closed-world",
                "-O3", "--gufa",
                "-O3", "--gufa",
                "-O3", "--gufa",
            )
It works fine without custom binaryen arguments.
m
This issue may contain some interesting info for you. My personal conclusion is that since Kotlin 2.2.0 it is not worth the effort anymore to fiddle with the binaryen arguments. The defaults are safer and show good results.
thank you color 3