From 3585c62f503666285333e77a813b8a3dc757b471 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Mon, 17 Nov 2025 16:53:38 -0500 Subject: wasm: Update emscripten defaults --- Makefile | 1 + README.md | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d058c31..aeccf61 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ ASSETS_DST = $(patsubst game/www/%,dist/%,$(ASSETS_SRC)) TEST_PORT ?= 8000 +EMSDK ?= /usr/lib/emscripten EMSDK_SYSROOT ?= $(EMSDK)/upstream/emscripten/cache/sysroot EMCC_CFLAGS := -O3 \ -sUSE_GLFW=3 \ diff --git a/README.md b/README.md index d3812c7..7fd9fb3 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,9 @@ cargo build --release --path game Web builds require the [emscripten](https://emscripten.org/docs/getting_started/downloads.html) toolchain. -Download emscripten, and make sure its added into your path. Also set the `EMSDK` env variable is set (often `/usr/lib/emscripten` when from a package manager). If you use the SDK and `source ./emsdk_env.sh` like the recommended installation instructions state, this should already be done for you. +Download emscripten, and make sure its added into your path. + +If you having build issues, make sure `EMSDK` is set to the library path of the toolchain. If you continue to have issues try installing emscripten though the git repo and the `emsdk` script. To build for web, invoke the makefile. The output website will be in `dist`. -- cgit v1.2.3-freya