This commit is contained in:
2020-05-24 21:53:30 +08:00
parent d4bf0a4d9f
commit 99a4348c91
2 changed files with 4 additions and 0 deletions

View File

@@ -0,0 +1 @@
clang --target=wasm32 --no-standard-libraries -Wl,--export-all -Wl,--no-entry -o sample.wasm sample.c

3
deno_run_wasm/c/sample.c Normal file
View File

@@ -0,0 +1,3 @@
int add(int a, int b) {
return a + b;
}