summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-11-17 11:47:05 -0500
committerFreya Murphy <freya@freyacat.org>2025-11-17 11:47:05 -0500
commitc87821116dc15a306a423bb37dd7e9237fb541c3 (patch)
tree6ebac5a7fd8daa0ee9ea3deab7e3ae70dda26889 /Makefile
parentwasm: remove unneeded flags/pkgs (diff)
downloadDungeonCrawl-c87821116dc15a306a423bb37dd7e9237fb541c3.tar.gz
DungeonCrawl-c87821116dc15a306a423bb37dd7e9237fb541c3.tar.bz2
DungeonCrawl-c87821116dc15a306a423bb37dd7e9237fb541c3.zip
wasm: fix C_INCLUDE_PATH for non wasm builds
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 02586da..06b3401 100644
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,7 @@ dist:
env \
CC=emcc \
EMCC_CFLAGS="$(EMCC_CFLAGS)" \
+ C_INCLUDE_PATH="$(EMSDK_SYSROOT)/include:$C_INCLUDE_PATH" \
cargo build --target wasm32-unknown-emscripten --profile wasm
mkdir -p dist
cp ./target/wasm32-unknown-emscripten/wasm/game.{js,wasm} dist