You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/contribute/toolchain.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,8 +38,7 @@ options.
38
38
3.__Generate syscall mappings__ (see [`make generate-syscall-mappings`](https://github.com/Lind-Project/lind-wasm/blob/main/Makefile))
39
39
40
40
Auto-generates syscall mapping constants from `src/glibc/lind_syscall/lind_syscall_num.h`
41
-
and produces `src/sysdefs/src/constants/syscall_const.rs`. This must run before building *glibc*
42
-
and *wasmtime* to ensure Rust code has the correct syscall definitions.
41
+
and produces `src/sysdefs/src/constants/syscall_const.rs`. This must run before building *lind-boot*, *glibc* and *wasmtime* to ensure Rust code has the correct syscall definitions.
43
42
44
43
```bash
45
44
python3 scripts/generate_syscall_mappings.py
@@ -63,10 +62,10 @@ options.
63
62
along with headers and a pre-built C runtime into a
64
63
sysroot directory structure as required by *Clang*.
65
64
66
-
5. __Build custom wasmtime__ (see [`make wasmtime`](https://github.com/Lind-Project/lind-wasm/blob/main/Makefile))
65
+
5. __Build lind-boot__ (see [`make lind-boot`](https://github.com/Lind-Project/lind-wasm/blob/main/Makefile))
Copy file name to clipboardExpand all lines: docs/getting-started.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,9 +38,9 @@ EOF
38
38
39
39
Lind-wasm runtime must be compiled before running the program. To compile the lind-wasm runtime, you will first go to the `lind-wasm/` directory. At there, you can choose:
40
40
41
-
3.a. use `make all` to compile both lind-glibc and rust code at once.
41
+
3.a. use `make all` to compile both lind-glibc and rust code at once. (this automatically generates syscall mappings)
42
42
43
-
3.b. use `make lind-boot` to compile runtime(lind-boot/wasmtime/rawposix/3i/etc.), and `make sysroot` to compile lind-glibc.
43
+
3.b. use `make generate-syscall-mappings` to auto-generate system call constants. Then use `make lind-boot` to compile runtime(lind-boot/wasmtime/rawposix/3i/etc.), and `make sysroot` to compile lind-glibc.
44
44
45
45
**NOTES: More options can be found in lind-wasm/Makefile**
0 commit comments