Skip to content

Commit

Permalink
Fix compatibility with Emscripten 3.1.28
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke committed Dec 25, 2022
1 parent d0cf672 commit e42c903
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ export LDFLAGS="-L$TARGET/lib -O3 -sEXPORTED_FUNCTIONS=_main,_malloc,_free -sALL
if [ "$WASM_BIGINT" = "true" ]; then
export LDFLAGS+=" -sWASM_BIGINT"
fi
# Ensure the `ffi_call` symbol can be found at link time
export LDFLAGS+=" -sLLD_REPORT_UNDEFINED=0"

# Build paths
export CPATH="$TARGET/include"
Expand Down
2 changes: 2 additions & 0 deletions testsuite/emscripten-test-stuff/node-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ export LDFLAGS="-O3 -sEXPORTED_FUNCTIONS=_main,_malloc,_free -sALLOW_TABLE_GROWT
if [ "$WASM_BIGINT" = "true" ]; then
export LDFLAGS+=" -sWASM_BIGINT"
fi
# Ensure the `ffi_call` symbol can be found at link time
export LDFLAGS+=" -sLLD_REPORT_UNDEFINED=0"

# Specific variables for cross-compilation
export CHOST="wasm32-unknown-linux" # wasm32-unknown-emscripten
Expand Down

0 comments on commit e42c903

Please sign in to comment.