From 03b833385bb970928cc94c4da66d818893642830 Mon Sep 17 00:00:00 2001 From: Brook J Date: Thu, 16 May 2024 10:26:44 +1000 Subject: Updated `build.zig` to support Zig 0.13.0-dev.211+6a65561e3 --- build.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.zig b/build.zig index 53e5f90..b4b1789 100644 --- a/build.zig +++ b/build.zig @@ -1,14 +1,14 @@ const std = @import("std"); pub fn build(b: *std.Build) void { - const clap_mod = b.addModule("clap", .{ .root_source_file = .{ .path = "clap.zig" } }); + const clap_mod = b.addModule("clap", .{ .root_source_file = .{ .src_path = .{ .owner = b, .sub_path = "clap.zig" } } }); const optimize = b.standardOptimizeOption(.{}); const target = b.standardTargetOptions(.{}); const test_step = b.step("test", "Run all tests in all modes."); const tests = b.addTest(.{ - .root_source_file = .{ .path = "clap.zig" }, + .root_source_file = .{ .src_path = .{ .owner = b, .sub_path = "clap.zig" } }, .target = target, .optimize = optimize, }); @@ -25,7 +25,7 @@ pub fn build(b: *std.Build) void { }) |example_name| { const example = b.addExecutable(.{ .name = example_name, - .root_source_file = .{ .path = b.fmt("example/{s}.zig", .{example_name}) }, + .root_source_file = .{ .src_path = .{ .owner = b, .sub_path = b.fmt("example/{s}.zig", .{example_name}) } }, .target = target, .optimize = optimize, }); -- cgit v1.2.3