Skip to content

Commit 42aca43

Browse files
committed
fix MacOS SDL3 build
1 parent d6cc2ee commit 42aca43

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build.zig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ pub fn build(b: *std.Build) void {
6666
.files = srcs,
6767
});
6868

69+
if (target.result.os.tag == .macos) {
70+
lib.addCSourceFile(.{
71+
.file = upstream.path("src/IMG_ImageIO.m"),
72+
});
73+
}
74+
6975
lib.installHeadersDirectory(upstream.path("include"), "", .{});
7076

7177
b.installArtifact(lib);

0 commit comments

Comments
 (0)