Skip to content

Commit 3319757

Browse files
committed
Linux: Disable use_static_cpp for 32-bit
The binaries seem to crash on Ubuntu 18.04 i386 when using it.
1 parent b4e0813 commit 3319757

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build-linux/build.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@ 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_static_cpp=yes use_lto=yes"
9+
export OPTIONS="debug_symbols=no use_lto=yes"
1010
export OPTIONS_MONO="module_mono_enabled=yes mono_static=yes"
1111
export TERM=xterm
1212
export CC="gcc-8"
1313
export CXX="g++-8"
1414

15+
if [ "$(getconf LONG_BIT)" == "64" ]; then
16+
export OPTIONS="${OPTIONS} use_static_cpp=yes"
17+
fi
18+
1519
rm -rf godot
1620
mkdir godot
1721
cd godot

0 commit comments

Comments
 (0)