From 618c2e8839dd8900091a7d0c603006e825315eb1 Mon Sep 17 00:00:00 2001 From: Ed Yu Date: Fri, 20 Oct 2023 09:40:11 -0700 Subject: [PATCH] Update to zig 0.12.0-dev.1127+32bc07767 --- build.zig | 39 +++++++++++++++++++++------------------ build.zig.zon | 4 ++-- 2 files changed, 23 insertions(+), 20 deletions(-) diff --git a/build.zig b/build.zig index 6ad46a4e..c1e3c904 100644 --- a/build.zig +++ b/build.zig @@ -50,24 +50,27 @@ pub fn build(b: *std.Build) !void { lib.addIncludePath(.{ .path = "lib/facil/http/parsers" }); // C source files - lib.addCSourceFiles(&.{ - "lib/facil/fio.c", - "lib/facil/fio_zig.c", - "lib/facil/http/http.c", - "lib/facil/http/http1.c", - "lib/facil/http/websockets.c", - "lib/facil/http/http_internal.c", - "lib/facil/fiobj/fiobj_numbers.c", - "lib/facil/fiobj/fio_siphash.c", - "lib/facil/fiobj/fiobj_str.c", - "lib/facil/fiobj/fiobj_ary.c", - "lib/facil/fiobj/fiobj_data.c", - "lib/facil/fiobj/fiobj_hash.c", - "lib/facil/fiobj/fiobj_json.c", - "lib/facil/fiobj/fiobject.c", - "lib/facil/fiobj/fiobj_mustache.c", - "lib/facil/cli/fio_cli.c", - }, flags.items); + lib.addCSourceFiles(.{ + .files = &.{ + "lib/facil/fio.c", + "lib/facil/fio_zig.c", + "lib/facil/http/http.c", + "lib/facil/http/http1.c", + "lib/facil/http/websockets.c", + "lib/facil/http/http_internal.c", + "lib/facil/fiobj/fiobj_numbers.c", + "lib/facil/fiobj/fio_siphash.c", + "lib/facil/fiobj/fiobj_str.c", + "lib/facil/fiobj/fiobj_ary.c", + "lib/facil/fiobj/fiobj_data.c", + "lib/facil/fiobj/fiobj_hash.c", + "lib/facil/fiobj/fiobj_json.c", + "lib/facil/fiobj/fiobject.c", + "lib/facil/fiobj/fiobj_mustache.c", + "lib/facil/cli/fio_cli.c", + }, + .flags = flags.items, + }); // link against libc lib.linkLibC(); diff --git a/build.zig.zon b/build.zig.zon index 277ebf3f..f524f9ab 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -1,5 +1,5 @@ .{ .name = "facil.io", - .version = "0.0.12", + .version = "0.0.13", + .paths = .{"."}, } -