From: Matt Corallo Date: Sun, 16 Jan 2022 23:13:29 +0000 (+0000) Subject: [TS] Use -O1 on debug builds as otherwise they can be unusable slow X-Git-Tag: v0.0.105.0~5^2~11 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=ac8a1b348337ec477ef38fd7fa37e8e179999f30;p=ldk-java [TS] Use -O1 on debug builds as otherwise they can be unusable slow --- diff --git a/genbindings.sh b/genbindings.sh index 9d42bbbd..3c669556 100755 --- a/genbindings.sh +++ b/genbindings.sh @@ -206,7 +206,7 @@ else [ "$3" != "false" ] && COMPILE="$COMPILE -Wl,-wrap,calloc -Wl,-wrap,realloc -Wl,-wrap,reallocarray -Wl,-wrap,malloc -Wl,-wrap,aligned_alloc -Wl,-wrap,free" if [ "$3" = "true" ]; then WASM_FILE=liblightningjs_debug.wasm - $COMPILE -o liblightningjs_debug.wasm -g -I"$1"/lightning-c-bindings/include/ ts/bindings.c "$1"/lightning-c-bindings/target/wasm32-wasi/debug/libldk.a $EXTRA_LINK + $COMPILE -o liblightningjs_debug.wasm -g -O1 -I"$1"/lightning-c-bindings/include/ ts/bindings.c "$1"/lightning-c-bindings/target/wasm32-wasi/debug/libldk.a $EXTRA_LINK else WASM_FILE=liblightningjs_release.wasm $COMPILE -o liblightningjs_release.wasm -s -Oz -I"$1"/lightning-c-bindings/include/ ts/bindings.c "$1"/lightning-c-bindings/target/wasm32-wasi/release/libldk.a $EXTRA_LINK