Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions platform/amd64/custom_imports.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ U32 testmodule__input_data(void *i, U32 k) {
U32 testmodule__input_data_len() {
return test_input_data_len;
}

void testmodule__shutdown() {
printf("shutdown()\n");
}
4 changes: 3 additions & 1 deletion platform/amd64/scripts/c2native-amd64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ CFLAGS=(
-g
-DAMD64
-D__bool_true_false_are_defined
-include stdbool.h
-O0
)

Expand All @@ -95,13 +96,14 @@ SOURCES=(
platform/amd64/amd64.c
platform/amd64/custom_imports.c
"$GUEST_DIR/guest.c"
$GUEST_DIR/s0*.c
w2c2/embedded/wasi.c
)

# Link libraries
LIBS=(-lm)

"$DOCKER_DIR/docker-shell.sh" gcc \
clang \
"${CFLAGS[@]}" \
"${INCLUDES[@]}" \
"${SOURCES[@]}" \
Expand Down