Skip to content

Commit

Permalink
Remove deprecated LazyPath stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
arrufat committed May 15, 2024
1 parent 6103094 commit 10b279a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub fn build(b: *std.Build) void {
const optimize = b.standardOptimizeOption(.{});

// Export module.
_ = b.addModule("zignal", .{ .root_source_file = .{ .path = "src/zignal.zig" } });
_ = b.addModule("zignal", .{ .root_source_file = b.path("src/zignal.zig") });

_ = buildModule(b, "zignal", target, optimize);

Expand All @@ -22,7 +22,7 @@ pub fn build(b: *std.Build) void {
}) |module| {
const module_test = b.addTest(.{
.name = module,
.root_source_file = .{ .path = b.fmt("src/{s}.zig", .{module}) },
.root_source_file = b.path(b.fmt("src/{s}.zig", .{module})),
.target = target,
.optimize = optimize,
});
Expand Down Expand Up @@ -50,7 +50,7 @@ fn buildModule(
if (target.result.isWasm()) {
module = b.addExecutable(.{
.name = name,
.root_source_file = .{ .path = b.fmt("src/{s}.zig", .{name}) },
.root_source_file = b.path(b.fmt("src/{s}.zig", .{name})),
.optimize = optimize,
.target = b.resolveTargetQuery(.{
.cpu_arch = .wasm32,
Expand Down Expand Up @@ -81,14 +81,14 @@ fn buildModule(
).step,
);
b.installDirectory(.{
.source_dir = .{ .path = "examples" },
.source_dir = b.path("examples"),
.install_dir = .prefix,
.install_subdir = "",
});
} else {
module = b.addSharedLibrary(.{
.name = name,
.root_source_file = .{ .path = b.fmt("src/{s}.zig", .{name}) },
.root_source_file = b.path(b.fmt("src/{s}.zig", .{name})),
.target = target,
.optimize = optimize,
});
Expand Down

0 comments on commit 10b279a

Please sign in to comment.