summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-11-14 16:59:49 +0100
committerGitHub <noreply@github.com>2021-11-14 16:59:49 +0100
commit0cbe94256e4f600ceb397ddf8c0e3dca60676e5b (patch)
treec180d937da4d539cbc8783f43cdebf4b0dfbce9f /.github/workflows
parent5f6303f985928d8fe2a9f75b80a32c9564b88fd6 (diff)
downloadopenttd-0cbe94256e4f600ceb397ddf8c0e3dca60676e5b.tar.xz
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.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/preview_build.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/preview_build.yml b/.github/workflows/preview_build.yml
index 345a2152d..2a280a6fc 100644
--- a/.github/workflows/preview_build.yml
+++ b/.github/workflows/preview_build.yml
@@ -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::"