From d8d747628d5218089a7e3f211d15a9eed1334d9c Mon Sep 17 00:00:00 2001 From: widberg Date: Sat, 30 Dec 2023 18:00:28 -0500 Subject: [PATCH] Fix WASI_SDK_PATH env var access --- justfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/justfile b/justfile index eb6de3a..d3988f6 100644 --- a/justfile +++ b/justfile @@ -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