-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Joel Dice <[email protected]>
- Loading branch information
Showing
4 changed files
with
10 additions
and
5 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -48,7 +48,7 @@ BULK_MEMORY_THRESHOLD ?= 32 | |
# Set the default WASI target triple. | ||
TARGET_TRIPLE = wasm32-wasi | ||
|
||
# Threaded version necessitates a different traget, as objects from different | ||
# Threaded version necessitates a different target, as objects from different | ||
# targets can't be mixed together while linking. | ||
ifeq ($(THREAD_MODEL), posix) | ||
TARGET_TRIPLE = wasm32-wasi-threads | ||
|
@@ -885,8 +885,13 @@ bindings: $(BINDING_WORK_DIR)/wasi-cli $(BINDING_WORK_DIR)/wit-bindgen | |
--rename wasi:cli/[email protected]=terminal_stdout \ | ||
--rename wasi:cli/[email protected]=terminal_stderr \ | ||
./wasi-cli/wit && \ | ||
mv preview2.h ../../libc-bottom-half/headers/public/ && \ | ||
mv preview2.c preview2_component_type.o ../../libc-bottom-half/sources | ||
mv preview2.h ../../libc-bottom-half/headers/public/wasi/ && \ | ||
mv preview2_component_type.o ../../libc-bottom-half/sources && \ | ||
sed 's_#include "preview2.h"_#include "wasi/preview2.h"_' \ | ||
< preview2.c \ | ||
> ../../libc-bottom-half/sources/preview2.c && \ | ||
rm preview2.c | ||
|
||
|
||
clean: | ||
$(RM) -r "$(BINDING_WORK_DIR)" | ||
|
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
File renamed without changes.
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,5 +1,5 @@ | ||
// Generated by `wit-bindgen` 0.16.0. DO NOT EDIT! | ||
#include "preview2.h" | ||
#include "wasi/preview2.h" | ||
|
||
|
||
__attribute__((__import_module__("wasi:cli/[email protected]"), __import_name__("get-environment"))) | ||
|