Cody Tapscott 922d8378e7 stage2: Add limited WASI support for selfExePath and globalCacheDir
This change adds support for locating the Zig executable and the library
and global cache directories, based on looking in the fixed "/zig" and
"/cache" directories.

Since our argv[0] on WASI is just the basename (any absolute/relative
path information is deleted by the runtime), there's very limited
introspection we can do on WASI, so we rely on these fixed directories.
These can be provided on the command-line using `--mapdir`, as follows:

```
wasmtime --mapdir=/cwd::. --mapdir=/cache::"$HOME/.cache/zig" --mapdir=/zig::./zig-out/ ./zig-out/bin/zig.wasm
```
2022-04-18 10:19:34 -07:00
..
2022-04-07 05:04:38 -06:00
2022-03-08 20:38:12 +02:00
2022-03-08 20:38:12 +02:00
2022-04-15 16:52:02 -06:00
2022-04-07 05:04:38 -06:00
2022-03-08 20:38:12 +02:00
2022-04-15 11:20:11 +03:00
2022-01-07 00:06:06 -05:00
2022-04-14 10:12:45 -07:00
2022-04-14 10:12:45 -07:00
2022-04-15 15:26:51 -05:00
2022-04-15 17:01:01 -05:00
2022-01-07 00:06:06 -05:00