Change: [Emscripten] update to 2.0.34 and use Release over RelWithDebInfo (#9696)

It turns out that having "-g" in the compile-statement causes
Emscripten to pick -g3, which makes for very big binaries. This
is very likely not your intention when building Emscripten, as
smaller really is better.

For comparison, with RelWithDebInfo the binary is ~80MB. With
Release it is ~7.4MB.
This commit is contained in:
Patric Stout
2021-11-14 16:59:49 +01:00
committed by Patric Stout
parent ec816c5746
commit 6b12a05cc5
3 changed files with 3 additions and 3 deletions

View File

@@ -76,7 +76,7 @@ jobs:
echo "::group::CMake"
emcmake cmake .. \
-DHOST_BINARY_DIR=../build-host \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_BUILD_TYPE=Release \
# EOF
echo "::endgroup::"