From 6397c5e76bb64cd133485b7ee920778bb8456c69 Mon Sep 17 00:00:00 2001 From: itowlson Date: Wed, 11 Dec 2024 14:41:11 +1300 Subject: [PATCH] Fix C and Zig templates Signed-off-by: itowlson --- templates/http-c/content/spin.toml | 2 +- templates/http-zig/content/spin.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/http-c/content/spin.toml b/templates/http-c/content/spin.toml index 6fef68334f..c71c6bedfb 100644 --- a/templates/http-c/content/spin.toml +++ b/templates/http-c/content/spin.toml @@ -15,5 +15,5 @@ executor = { type = "wagi" } source = "main.wasm" allowed_outbound_hosts = [] [component.{{project-name | kebab_case}}.build] -command = "zig build-exe -O ReleaseSmall -target wasm32-wasip1 main.c -lc" +command = "zig build-exe -O ReleaseSmall -target wasm32-wasi main.c -lc" watch = ["**/*.c"] diff --git a/templates/http-zig/content/spin.toml b/templates/http-zig/content/spin.toml index e324e47c83..ae28cc3f02 100644 --- a/templates/http-zig/content/spin.toml +++ b/templates/http-zig/content/spin.toml @@ -15,5 +15,5 @@ executor = { type = "wagi" } source = "main.wasm" allowed_outbound_hosts = [] [component.{{project-name | kebab_case}}.build] -command = "zig build-exe -O ReleaseSmall -target wasm32-wasip1 src/main.zig" +command = "zig build-exe -O ReleaseSmall -target wasm32-wasi src/main.zig" watch = ["src/**/*.zig"]