Maybe this will help macos

This commit is contained in:
Krzysztof Wolicki
2024-01-07 21:39:53 +01:00
parent 46530b572e
commit 3c78df70fb
5 changed files with 16 additions and 5 deletions

View File

@@ -59,7 +59,10 @@ pub fn build(b: *std.Build) !void {
});
if (target.result.isDarwin()) {
if (!target.query.isNative()) try @import("apple_sdk").addPaths(b, lib);
if (!target.query.isNative()) {
try @import("apple_sdk").addPaths(b, lib);
try @import("apple_sdk").addPathsModule(b, module);
}
lib.addCSourceFile(.{
.file = imgui.path("backends/imgui_impl_metal.mm"),
.flags = flags.items,