Skip to content

Commit 5ccc4fc

Browse files
authored
Update README.md
1 parent 2b66cc2 commit 5ccc4fc

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

wasm/README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
# wasm support
22

3-
This fork generates copies of the `unix` package source files that would be
4-
used for `linux/arm64` and changes their build tags for `js/wasm`, allowing libraries using sys/unix to build for wasm.
3+
This fork generates copies of the `golang.org/x/sys/unix` package source files that would be
4+
used for linux/arm64 and changes their build tags to js/wasm, allowing libraries using `golang.org/x/sys/unix` (often assuming Linux) to build for wasm.
55

66
It also does something similar for the `syscall` standard library, and replaces
7-
imports in `unix` with the generated `wasm/syscall` package here.
7+
imports in the generated source added to `unix` with the generated `wasm/syscall` package here.
88

9-
After generating, both have been tuned by hand to sub out empty function bodies
10-
and replace internal imports until things compile.
9+
After generating, both have been tuned by hand to sub out empty function bodies, replace internal imports, etc until things compile.
1110

12-
At this point, there is no way to hook into replace stubbed syscalls, but they are at least defined.
11+
At this point, there is no way to hook into replace stubbed syscalls, but they are at least defined and programs will compile.

0 commit comments

Comments
 (0)