Skip to content

Commit

Permalink
try aggressive wasm linker flags
Browse files Browse the repository at this point in the history
  • Loading branch information
falkTX committed Aug 4, 2022
1 parent 1219906 commit 102ebdf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/bootstrap.yml
Expand Up @@ -8,7 +8,7 @@ on:
branches:
- '*'
env:
CACHE_VERSION: 14
CACHE_VERSION: 15
DEBIAN_FRONTEND: noninteractive
HOMEBREW_NO_AUTO_UPDATE: 1

Expand Down
2 changes: 2 additions & 0 deletions setup/env.sh
Expand Up @@ -133,6 +133,8 @@ if [ "${MACOS}" -eq 1 ]; then
LINK_FLAGS+=" -Wl,-dead_strip,-dead_strip_dylibs,-x"
elif [ "${WASM}" -eq 1 ]; then
LINK_FLAGS+=" -Wl,-O1,--gc-sections"
LINK_FLAGS+=" -sAGGRESSIVE_VARIABLE_ELIMINATION=1"
LINK_FLAGS+=" -sENVIRONMENT=web"
LINK_FLAGS+=" -sLLD_REPORT_UNDEFINED"
else
LINK_FLAGS+=" -Wl,-O1,--as-needed,--gc-sections,--no-undefined,--strip-all"
Expand Down

0 comments on commit 102ebdf

Please sign in to comment.