test/standalone: fix iOS smoke test

This commit is contained in:
Jakub Konka 2024-05-13 08:55:27 +02:00
parent e69caaa39f
commit 6f117dbca4

View File

@ -22,9 +22,9 @@ pub fn build(b: *std.Build) void {
.target = target,
});
exe.addCSourceFile(.{ .file = b.path("main.m"), .flags = &.{} });
exe.addSystemIncludePath(b.path(b.pathJoin(&.{ sdk, "/usr/include" })));
exe.addSystemFrameworkPath(b.path(b.pathJoin(&.{ sdk, "/System/Library/Frameworks" })));
exe.addLibraryPath(b.path(b.pathJoin(&.{ sdk, "/usr/lib" })));
exe.addSystemIncludePath(.{ .cwd_relative = b.pathJoin(&.{ sdk, "/usr/include" }) });
exe.addSystemFrameworkPath(.{ .cwd_relative = b.pathJoin(&.{ sdk, "/System/Library/Frameworks" }) });
exe.addLibraryPath(.{ .cwd_relative = b.pathJoin(&.{ sdk, "/usr/lib" }) });
exe.linkFramework("Foundation");
exe.linkFramework("UIKit");
exe.linkLibC();