Skip to content

Commit

Permalink
build: Include missing assembly files
Browse files Browse the repository at this point in the history
  • Loading branch information
foxnne committed Nov 12, 2024
1 parent 05918e3 commit 998205b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ pub fn build(b: *std.Build) void {
module.linkFramework("AppKit", .{});
if (target.result.cpu.arch == .x86_64) {
module.addAssemblyFile(b.path("MACHAppDelegate_x86_64_apple_macos12.s"));
module.addAssemblyFile(b.path("MACHWindowDelegate_x86_64_apple_macos12.s"));
} else {
module.addAssemblyFile(b.path("MACHAppDelegate_arm64_apple_macos12.s"));
module.addAssemblyFile(b.path("MACHWindowDelegate_arm64_apple_macos12.s"));
}
} else {
module.linkFramework("UIKit", .{});
Expand Down
3 changes: 3 additions & 0 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
"MACHAppDelegate_arm64_apple_macos12.s",
"MACHAppDelegate_x86_64_apple_macos12.s",
"MACHAppDelegate.m",
"MACHWindowDelegate_arm64_apple_macos12.s",
"MACHWindowDelegate_x86_64_apple_macos12.s",
"MACHWindowDelegate.m",
"metal_manual.zig",
"registry.zig",
"update.sh",
Expand Down

0 comments on commit 998205b

Please sign in to comment.