Skip to content

Commit c746129

Browse files
chore: update for zig 0.12.0-dev.2058+04ac028a2
1 parent 49894df commit c746129

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub fn build(b: *std.Build) void {
77
const no_tests = b.option(bool, "no-tests", "skip generating tests") orelse false;
88

99
const module = b.addModule("libdrm", .{
10-
.source_file = .{ .path = b.pathFromRoot("libdrm.zig") },
10+
.root_source_file = .{ .path = b.pathFromRoot("libdrm.zig") },
1111
});
1212

1313
const exe_example = b.addExecutable(.{
@@ -18,7 +18,7 @@ pub fn build(b: *std.Build) void {
1818
.target = target,
1919
.optimize = optimize,
2020
});
21-
exe_example.addModule("libdrm", module);
21+
exe_example.root_module.addImport("libdrm", module);
2222
b.installArtifact(exe_example);
2323

2424
if (!no_tests) {

0 commit comments

Comments
 (0)