Skip to content

Commit

Permalink
guest_c: build with -Os
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed Dec 8, 2023
1 parent c4d4e81 commit c1b93ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guest_c/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ test -d "${WASI_SDK_DIR}" || fetch_wasi_sdk

CC=${CC:-${WASI_SDK_DIR}/bin/clang}
wit-bindgen c ../wit
${CC} -I./libjpeg/include -mexec-model=reactor -o guest.wasm main.c sensing.c sensing_component_type.o -L./libjpeg/lib -ljpeg
${CC} -Os -I./libjpeg/include -mexec-model=reactor -o guest.wasm main.c sensing.c sensing_component_type.o -L./libjpeg/lib -ljpeg
wasm-tools component new \
guest.wasm \
-o guest-component.wasm \
Expand Down

0 comments on commit c1b93ed

Please sign in to comment.