Skip to content

Commit 37d7666

Browse files
committed
JS: Re-enable LTO for classical builds
I had done this locally already but somehow forgot to commit and lost the changes, so re-doing. Not enabling it for Mono builds as it causes errors (or crashes with threads enabled) with Emscripten 1.39.9.
1 parent fe6e7b1 commit 37d7666

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build-javascript/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ set -e
66

77
export BUILD_NAME=official
88
export SCONS="scons -j${NUM_CORES} verbose=yes warnings=no progress=no"
9-
export OPTIONS="debug_symbols=no use_lto=no"
10-
export OPTIONS_MONO="module_mono_enabled=yes mono_static=yes mono_prefix=/root/mono-installs/wasm-runtime-release"
9+
export OPTIONS="debug_symbols=no use_lto=yes"
10+
export OPTIONS_MONO="module_mono_enabled=yes mono_static=yes mono_prefix=/root/mono-installs/wasm-runtime-release use_lto=no"
1111
export TERM=xterm
1212

1313
rm -rf godot

0 commit comments

Comments
 (0)