dockcross/imagefiles/wasmtime-pwd.sh
Matt McCormick ae03014632 web-wasi: mount /work in emulator for access to working directory
Ensure there is access to the source tree for try_run's.
2023-02-12 22:38:02 -05:00

5 lines
174 B
Bash
Executable File

#!/usr/bin/env bash
# Mount the PWD and the /work mount dir to enable access in try_run commands
exec ${WASMTIME_HOME}/bin/wasmtime run --dir=. --dir=$PWD --dir=/work/ "$@"