Skip to content
This repository has been archived by the owner on Feb 26, 2025. It is now read-only.

Commit

Permalink
clean and rmdirs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
noise64 committed Jan 15, 2025
1 parent b18cf26 commit ffe2f0b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/c/c-default/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ bindings:
wit-bindgen c --autodrop-borrows yes --out-dir component_name ./wit

compile: bindings
${WASI_SDK}/bin/clang --sysroot ${WASI_SDK}/share/wasi-sysroot main.c component_name/component_name.c component_name/component_name_component_type.o -o component_name.module.wasm
${WASI_SDK_PATH}/bin/clang --sysroot ${WASI_SDK_PATH}/share/wasi-sysroot main.c component_name/component_name.c component_name/component_name_component_type.o -o component_name.module.wasm

clean:
rm -rf component_name
Expand Down
2 changes: 1 addition & 1 deletion examples/c/c-example-http/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ bindings:
wit-bindgen c --autodrop-borrows yes --out-dir component_name ./wit

compile: bindings
${WASI_SDK}/bin/clang --sysroot ${WASI_SDK}/share/wasi-sysroot main.c component_name/component_name.c component_name/component_name_component_type.o -o component_name.module.wasm
${WASI_SDK_PATH}/bin/clang --sysroot ${WASI_SDK_PATH}/share/wasi-sysroot main.c component_name/component_name.c component_name/component_name_component_type.o -o component_name.module.wasm

clean:
rm -rf component_name
Expand Down
4 changes: 4 additions & 0 deletions examples/go/go-default/golem.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ components:
linkedWasm: build/linked-components/component_name_linked.wasm
build:
- command: wit-bindgen tiny-go --rename-package binding --out-dir binding ./wit-generated
rmdirs:
- binding
mkdirs:
- binding
sources:
- wit-generated
targets:
Expand Down
2 changes: 2 additions & 0 deletions examples/python/python-default/golem.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ components:
- main.py
targets:
- build/components/component_name.wasm
clean:
- bindings
1 change: 0 additions & 1 deletion examples/ts/ts-default/golem.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ components:
- out/components/component_name.wasm
clean:
- src/binding
- wit-generated
customCommands:
install:
- command: npm install

0 comments on commit ffe2f0b

Please sign in to comment.