Skip to content

Commit

Permalink
refactor: Update Makefile to fix wasm build on Ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
theashraf committed Dec 12, 2024
1 parent 90d6c93 commit 73eb1fb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,7 @@ endef

define CARGO_BUILD
if [ "$(CARGO_TARGET)" = "wasm32-unknown-emscripten" ]; then \
cd $(EMSDK_DIR) && \
. ./emsdk_env.sh && \
cd $(PROJECT_DIR) && \
. $(EMSDK_DIR)/$(EMSDK)_env.sh && \
RUSTFLAGS="-Zlocation-detail=none" cargo +nightly build \
-Z build-std=std,panic_abort \
-Z build-std-features="panic_immediate_abort,optimize_for_size" \
Expand Down

0 comments on commit 73eb1fb

Please sign in to comment.