use WASI_ROOT env var to specify witx paths to wiggle macros

This commit is contained in:
Pat Hickey
2020-08-28 15:42:51 -07:00
parent 91dac9c7e8
commit 22b427baa0
2 changed files with 4 additions and 3 deletions

View File

@@ -4,7 +4,7 @@
use crate::WasiCtx;
wiggle::from_witx!({
witx: ["WASI/phases/snapshot/witx/wasi_snapshot_preview1.witx"],
witx: ["$WASI_ROOT/phases/snapshot/witx/wasi_snapshot_preview1.witx"],
ctx: WasiCtx,
});