-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (22 loc) · 789 Bytes
/
Makefile
File metadata and controls
30 lines (22 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
.PHONY: all build-component build-host clean run debug
all: build-component build-host
build-component:
rustup target add wasm32-wasip2
cd wasm-component && cargo build --target wasm32-wasip2
build-host:
cd host-app && cargo build
run: build-component build-host
cd host-app && ./target/debug/host-app
clean:
cd wasm-component && cargo clean
cd host-app && cargo clean
cd wasm-module && make clean
debug: build-component build-host
@echo "Open VS Code and use the 'Debug Host App' launch configuration"
@echo "Or run manually with debug logging:"
@echo "cd host-app && WASMTIME_BACKTRACE_DETAILS=1 WASMTIME_LOG=debug ./target/debug/host-app"
# Legacy core module
build-legacy:
cd wasm-module && make
test: run
@echo "WebAssembly component test completed successfully!"