Commit45640439Recorded31 Mar 2026Repositorysigil-web-repl
Add web config with zig wasm32-wasi target
Message
The web config must be in the package's own configs so the toolchain and target settings apply to the build.
Changed
package.sgl | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)Diff
package.sglmodified
@@ -25,7 +25,23 @@
25
name: 'release 26
output-dir: "build/release" 27
debug?: #f−28
optimize: 2))+28
optimize: 2)+29
(config+30
name: 'web+31
output-dir: "build/web"+32
toolchain: 'zig+33
target: "wasm32-wasi"+34
debug?: #f+35
optimize: 2+36
c-flags: '("-std=c99" "-D_GNU_SOURCE" "-D__SIGIL_WEB__" "-Wall" "-O2")+37
link-flags: '("-Wl,--export=sigil_web_init"+38
"-Wl,--export=sigil_web_start"+39
"-Wl,--export=sigil_web_eval"+40
"-Wl,--export=sigil_web_input"+41
"-Wl,--export=malloc"+42
"-Wl,--export=free"+43
"-lc")+44
features: '(web wasm))) 45
46
dependencies: (list 47
(from-git url: sigil-repo package: "sigil-web-run")