forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR-URL: nodejs#43697 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
- Loading branch information
1 parent
50a3e97
commit 4b6f01c
Showing
28 changed files
with
850 additions
and
1,184 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,12 +1,13 @@ | ||
CC = /opt/wasi-sdk/bin/clang | ||
TARGET = wasm32-unknown-wasi | ||
TARGET = wasm32-wasi | ||
SYSROOT = | ||
CFLAGS = -D_WASI_EMULATED_PROCESS_CLOCKS -lwasi-emulated-process-clocks | ||
|
||
OBJ = $(patsubst c/%.c, wasm/%.wasm, $(wildcard c/*.c)) | ||
all: $(OBJ) | ||
|
||
wasm/%.wasm : c/%.c | ||
$(CC) $< --target=$(TARGET) --sysroot=$(SYSROOT) -s -o $@ | ||
$(CC) $< $(CFLAGS) --target=$(TARGET) --sysroot=$(SYSROOT) -s -o $@ | ||
|
||
.PHONY clean: | ||
rm -f $(OBJ) |
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.