Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix WASI_SDK_PATH env var access
Browse files Browse the repository at this point in the history
widberg committed Dec 30, 2023
1 parent f87616f commit d8d7476
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
@@ -4,6 +4,8 @@

set windows-shell := ["powershell.exe", "-Command"]

wasi_sdk_path := env_var("WASI_SDK_PATH")

list:
just --list

@@ -21,7 +23,7 @@ build:
cargo build --release

build-wasm:
cmake -E env CC="$WASI_SDK_PATH/bin/clang --sysroot=$WASI_SDK_PATH/share/wasi-sysroot" cargo build --target wasm32-wasi --bin bff-gui
cmake -E env CC="{{ wasi_sdk_path }}/bin/clang --sysroot={{ wasi_sdk_path }}/share/wasi-sysroot" cargo build --target wasm32-wasi --bin bff-gui

doc:
cargo doc

0 comments on commit d8d7476

Please sign in to comment.