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 7826416 commit 90d6c93
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,10 @@ endef

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

0 comments on commit 90d6c93

Please sign in to comment.