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 = .{