diff options
| author | Patrick Schönberger | 2026-05-18 12:27:54 +0200 |
|---|---|---|
| committer | Patrick Schönberger | 2026-05-18 12:27:54 +0200 |
| commit | e75dbcb13fa36b13b5b71ff6d9622d3cb0fd54b5 (patch) | |
| tree | 73f8ed50d968f285af9d0d72386e12e673f122fd /build.zig | |
| parent | ecf1efb4a84a90f8c2b5a0d3c28cba25ce3666c4 (diff) | |
| download | zhttpws-e75dbcb13fa36b13b5b71ff6d9622d3cb0fd54b5.tar.gz zhttpws-e75dbcb13fa36b13b5b71ff6d9622d3cb0fd54b5.zip | |
change to ziozio
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -20,6 +20,10 @@ pub fn build(b: *std.Build) void { // of this build script using `b.option()`. All defined flags (including // target and optimize options) will be listed when running `zig build --help` // in this directory. + const zio = b.dependency("zio", .{ + .target = target, + .optimize = optimize, + }); // Here we define an executable. An executable needs to have a root module // which needs to expose a `main` function. While we could add a main function @@ -44,6 +48,7 @@ pub fn build(b: *std.Build) void { // unlike b.addModule, it does not expose the module to consumers of // this package, which is why in this case we don't have to give it a name. .root_source_file = b.path("src/main.zig"), + .imports = &[_]std.Build.Module.Import{.{ .name = "zio", .module = zio.module("zio") }}, // Target and optimization levels must be explicitly wired in when // defining an executable or library (in the root module), and you // can also hardcode a specific target for an executable or library |
