From 8ccb2c3a66d6514f377bac6bd793d4bb2195d4e6 Mon Sep 17 00:00:00 2001 From: torque Date: Tue, 18 Jun 2024 18:24:19 -0700 Subject: [PATCH] build: update for zig-0.13 --- build.zig | 6 +++--- build.zig.zon | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build.zig b/build.zig index f284544..17921df 100644 --- a/build.zig +++ b/build.zig @@ -5,12 +5,12 @@ pub fn build(b: *std.Build) void { const optimize = b.standardOptimizeOption(.{}); const nice = b.addModule("nice", .{ - .root_source_file = .{ .path = "src/nice.zig" }, + .root_source_file = b.path("src/nice.zig"), }); const tests = b.addTest(.{ .name = "nice-unit-tests", - .root_source_file = .{ .path = "tests/main.zig" }, + .root_source_file = b.path("tests/main.zig"), .target = target, .optimize = optimize, }); @@ -50,7 +50,7 @@ pub fn add_examples(b: *std.Build, options: ExampleOptions) void { inline for (examples) |example| { const ex_exe = b.addExecutable(.{ .name = example.name, - .root_source_file = .{ .path = example.file }, + .root_source_file = b.path(example.file), .target = options.target, .optimize = .Debug, }); diff --git a/build.zig.zon b/build.zig.zon index 878c10c..f3a129f 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -1,5 +1,5 @@ .{ - .name = "nice-data", + .name = "nice", .version = "0.1.0-pre", .dependencies = .{}, .paths = .{