Skip to content

Commit

Permalink
Build with -fvisibility=hidden by default
Browse files Browse the repository at this point in the history
To reduce the number of exports in the side modules.

See:
emscripten-core/emscripten#15487 (comment)
  • Loading branch information
kleisauke committed Oct 22, 2023
1 parent a33a2f5 commit 9d17225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ else
COMMON_FLAGS+=" -fexceptions"
fi

export CFLAGS="$COMMON_FLAGS -mnontrapping-fptoint"
export CFLAGS="$COMMON_FLAGS -mnontrapping-fptoint -fvisibility=hidden"
if [ "$SIMD" = "true" ]; then
export CFLAGS+=" -msimd128 -DWASM_SIMD_COMPAT_SLOW"
export RUSTFLAGS+=" -Ctarget-feature=+simd128"
Expand Down

0 comments on commit 9d17225

Please sign in to comment.