From 2852a5f22b8c1c14be6709dcbf34b19acf760d5c Mon Sep 17 00:00:00 2001 From: owl Date: Thu, 16 May 2024 18:02:40 +0200 Subject: [PATCH] keep up with zig --- build.zig | 8 ++++---- build.zig.zon | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/build.zig b/build.zig index 10b9263..681238b 100644 --- a/build.zig +++ b/build.zig @@ -13,7 +13,7 @@ pub fn build(b: *std.Build) !void { const varint_dep = b.dependency("varint", .{}); const bare_mod = b.addModule("bare", .{ - .root_source_file = .{ .path = "src" ++ sep ++ "bare.zig" }, + .root_source_file = b.path(b.pathJoin(&.{ "src", "bare.zig" })), .imports = &.{ .{ .name = "varint", @@ -24,7 +24,7 @@ pub fn build(b: *std.Build) !void { const bench = b.addExecutable(.{ .name = program_name ++ "-benchmark", - .root_source_file = .{ .path = "src" ++ sep ++ "benchmark.zig" }, + .root_source_file = b.path(b.pathJoin(&.{ "src", "benchmark.zig" })), .optimize = optimize, .target = target, }); @@ -33,7 +33,7 @@ pub fn build(b: *std.Build) !void { bench.root_module.addImport("varint", varint_dep.module("varint")); const unit_tests = b.addTest(.{ - .root_source_file = .{ .path = "src" ++ sep ++ "test.zig" }, + .root_source_file = b.path(b.pathJoin(&.{ "src", "test.zig" })), .optimize = optimize, .target = target, }); @@ -41,7 +41,7 @@ pub fn build(b: *std.Build) !void { unit_tests.root_module.addImport("bare", bare_mod); const interop_tests = b.addTest(.{ - .root_source_file = .{ .path = "interop" ++ sep ++ "root.zig" }, + .root_source_file = b.path(b.pathJoin(&.{ "interop", "root.zig" })), .optimize = optimize, .target = target, }); diff --git a/build.zig.zon b/build.zig.zon index b7eefec..b6ca939 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -4,8 +4,8 @@ .paths = .{""}, .dependencies = .{ .varint = .{ - .url = "https://git.sr.ht/~alva/zig-varint/archive/312fc43.tar.gz", - .hash = "12206217b59bf0eac3652f2534c08b22aa9de3d8b62b3b155807625436add971f2d9", + .url = "https://git.sr.ht/~alva/zig-varint/archive/c4e994e.tar.gz", + .hash = "12208ec5d37ec7bd5bfff2c9b60f126ccf73ba3c5141788ea004edfc07d70d583f9f", }, }, } -- 2.45.2