diff options
| -rw-r--r-- | Makefile | 1 | ||||
| -rw-r--r-- | flake.nix | 1 | ||||
| -rw-r--r-- | game/Cargo.toml | 2 |
3 files changed, 2 insertions, 2 deletions
@@ -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 @@ -63,7 +63,6 @@ # setup wasm export PATH="$EMSDK/share/emscripten:$PATH" - export C_INCLUDE_PATH="$EMSDK_SYSROOT/include:$C_INCLUDE_PATH" export EM_CACHE="$HOME"/.emscripten_cache ''; diff --git a/game/Cargo.toml b/game/Cargo.toml index af4a533..0e64d0e 100644 --- a/game/Cargo.toml +++ b/game/Cargo.toml @@ -22,5 +22,5 @@ sdl = ["graphics/sdl"] static = ["graphics/static"] # desktop dependencies -[target.'cfg(not(target_arch = "wasm32"))'.dependencies] +[target.'cfg(any(target_os = "linux", target_os = "macos", target_os = "windows"))'.dependencies] argh.workspace = true |