mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-12-22 00:14:26 +01:00
web-wasi: mount /work in emulator for access to working directory
Ensure there is access to the source tree for try_run's.
This commit is contained in:
parent
a61e35f543
commit
ae03014632
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Mount the PWD to enable access in try_run commands
|
||||
exec ${WASMER_DIR}/bin/wasmer run --dir=. --dir=$PWD "$@"
|
||||
# Mount the PWD and the /work mount dir to enable access in try_run commands
|
||||
exec ${WASMER_DIR}/bin/wasmer run --dir=. --dir=$PWD --dir=/work/ "$@"
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Mount the PWD to enable access in try_run commands
|
||||
exec ${WASMTIME_HOME}/bin/wasmtime run --dir=. --dir=$PWD "$@"
|
||||
# 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/ "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user