summaryrefslogtreecommitdiff
path: root/wasm
diff options
context:
space:
mode:
authorYuta Saito <[email protected]>2022-01-16 01:18:49 +0900
committerYuta Saito <[email protected]>2022-01-19 11:19:06 +0900
commit7ee786388ae0d6f8c8cea7bf012cc11fdb5b534a ()
tree5730c7c4890c284f3c8c9a19fab846a02acd6aa4 /wasm
parent65f95f26ff0e7b4be4704fedc52344a26d22a4e2 (diff)
[wasm] wasm/missing.{c,h}: add missing libc stubs for wasi-libc
Notes: Merged: https://.com/ruby/ruby/pull/5407
-rw-r--r--wasm/GNUmakefile.in1
-rw-r--r--wasm/missing.c199
2 files changed, 200 insertions, 0 deletions
@@ -8,6 +8,7 @@ wasmoptflags = @wasmoptflags@
WASM_OBJS = $(wasmdir)/machine_core.o $(wasmdir)/machine.o $(wasmdir)/setjmp.o $(wasmdir)/setjmp_core.o $(wasmdir)/fiber.o $(wasmdir)/runtime.o
wasm/fiber.$(OBJEXT): $(wasmdir)/fiber.c $(wasmdir)/fiber.h $(wasmdir)/asyncify.h $(PLATFORM_D)
wasm/machine.$(OBJEXT): $(wasmdir)/machine.c $(srcdir)/wasm/machine.h $(wasmdir)/asyncify.h $(PLATFORM_D)
wasm/setjmp.$(OBJEXT): $(wasmdir)/setjmp.c $(wasmdir)/setjmp.h $(wasmdir)/machine.h $(wasmdir)/asyncify.h $(PLATFORM_D)
@@ -0,0 +1,199 @@