Skip to content

Commit

Permalink
examples: fix run
Browse files Browse the repository at this point in the history
  • Loading branch information
G4Vi committed Nov 30, 2023
1 parent c1401b8 commit b732948
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/count-vowels/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ WASI_SDK_PATH?=../../wasi-sdk
count-vowels:
$(WASI_SDK_PATH)/bin/clang -O2 -g -o count-vowels.wasm count-vowels.c -mexec-model=reactor

run:
run: count-vowels
extism call ./count-vowels.wasm count_vowels --wasi --input "this is a test"
4 changes: 2 additions & 2 deletions examples/globals/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
WASI_SDK_PATH?=../../wasi-sdk

.PHONY: globals
count-vowels:
globals:
$(WASI_SDK_PATH)/bin/clang -O2 -g -o globals.wasm globals.c -mexec-model=reactor

run:
run: globals
extism call ./globals.wasm globals --loop 100 --wasi
2 changes: 1 addition & 1 deletion examples/infinite-loop/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ WASI_SDK_PATH?=../../wasi-sdk
infinite-loop:
$(WASI_SDK_PATH)/bin/clang -O2 -g -o infinite-loop.wasm infinite-loop.c -mexec-model=reactor -Wl,--export=infinite_loop

run:
run: infinite-loop
extism call --manifest ./manifest.json infinite_loop --wasi

0 comments on commit b732948

Please sign in to comment.