aboutsummaryrefslogtreecommitdiffhomepage
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig9
1 files changed, 8 insertions, 1 deletions
diff --git a/build.zig b/build.zig
index 08235d1..4e02250 100644
--- a/build.zig
+++ b/build.zig
@@ -24,7 +24,14 @@ pub fn build(b: *std.Build) void {
.optimize = optimize,
});
- exe.addAnonymousModule("zigimg", .{ .source_file = .{ .path = "deps/zigimg/zigimg.zig" } });
+ exe.root_module.addAnonymousImport(
+ "zigimg",
+ .{
+ .root_source_file = .{
+ .path = "deps/zigimg/zigimg.zig",
+ },
+ },
+ );
// This declares intent for the executable to be installed into the
// standard location when the user invokes the "install" step (the default