forked from steeve/cross-compiler
-
Notifications
You must be signed in to change notification settings - Fork 405
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
web-wasi: mount /work in emulator for access to working directory
Ensure there is access to the source tree for try_run's.
- Loading branch information
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/ "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/ "$@" |