mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Emscripten: remove LTO
In Emscripten 4, LTO seems to be causing significant performance regressions in the webassembly code. Reported by @cooper667 -- Thanks! See https://github.com/jedisct1/libsodium.js/issues/359
This commit is contained in:
@@ -16,8 +16,6 @@ export LDFLAGS="${LDFLAGS} -s DISABLE_EXCEPTION_CATCHING=1"
|
||||
export LDFLAGS="${LDFLAGS} -s NODEJS_CATCH_EXIT=0"
|
||||
export LDFLAGS="${LDFLAGS} -s NODEJS_CATCH_REJECTION=0"
|
||||
export LDFLAGS="${LDFLAGS} -s WASM_BIGINT=0"
|
||||
export LDFLAGS="${LDFLAGS} -flto"
|
||||
export CFLAGS="${CFLAGS:+${CFLAGS} }-flto"
|
||||
|
||||
echo
|
||||
if [ "$1" = "--standard" ]; then
|
||||
|
||||
Reference in New Issue
Block a user