Skip to content

Commit aa64d27

Browse files
fix wasm build
1 parent aec1329 commit aa64d27

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,13 @@ if [ -z "$TARGET" ] && [ "$BUILD_WASM" = false ]; then
6969
exit 1
7070
fi
7171

72-
BASE_RUSTFLAGS="-Csymbol-mangling-version=v0 -Zlocation-detail=none -Zfmt-debug=none"
72+
BASE_RUSTFLAGS="-Csymbol-mangling-version=v0 -Zlocation-detail=none"
7373

7474
mv .cargo/.config.toml .cargo/config.toml
7575

7676
if [ "$BUILD_WASM" = true ]; then
7777
echo "Building particle-simulation for web..."
78+
# TODO: See if I can enable this feature
7879
WASM_RUSTFLAGS="$BASE_RUSTFLAGS -C target-feature=-nontrapping-fptoint"
7980
if [ -n "$PUBLIC_URL" ]; then
8081
echo "Using public URL: $PUBLIC_URL"
@@ -90,7 +91,7 @@ if [ "$BUILD_WASM" = true ]; then
9091
fi
9192

9293
if [ -n "$TARGET" ]; then
93-
NATIVE_RUSTFLAGS="$BASE_RUSTFLAGS"
94+
NATIVE_RUSTFLAGS="$BASE_RUSTFLAGS -Zfmt-debug=none"
9495
if [ "$NATIVE_OPT" = true ]; then
9596
echo "Building particle-simulation for $TARGET with native CPU optimizations..."
9697
NATIVE_RUSTFLAGS="$NATIVE_RUSTFLAGS -C target-cpu=native"

0 commit comments

Comments
 (0)