We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49894df commit c746129Copy full SHA for c746129
build.zig
@@ -7,7 +7,7 @@ pub fn build(b: *std.Build) void {
7
const no_tests = b.option(bool, "no-tests", "skip generating tests") orelse false;
8
9
const module = b.addModule("libdrm", .{
10
- .source_file = .{ .path = b.pathFromRoot("libdrm.zig") },
+ .root_source_file = .{ .path = b.pathFromRoot("libdrm.zig") },
11
});
12
13
const exe_example = b.addExecutable(.{
@@ -18,7 +18,7 @@ pub fn build(b: *std.Build) void {
18
.target = target,
19
.optimize = optimize,
20
21
- exe_example.addModule("libdrm", module);
+ exe_example.root_module.addImport("libdrm", module);
22
b.installArtifact(exe_example);
23
24
if (!no_tests) {
0 commit comments