We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4186e9f + 494f62c commit ee70f27Copy full SHA for ee70f27
build.zig
@@ -21,6 +21,12 @@ pub fn addPaths(step: *std.Build.Step.Compile) void {
21
step.addLibraryPath(.{ .cwd_relative = sdkPath("/lib") });
22
}
23
24
+pub fn addPathsModule(m: *std.Build.Module) void {
25
+ m.addSystemFrameworkPath(.{ .cwd_relative = sdkPath("/Frameworks") });
26
+ m.addSystemIncludePath(.{ .cwd_relative = sdkPath("/include") });
27
+ m.addLibraryPath(.{ .cwd_relative = sdkPath("/lib") });
28
+}
29
+
30
fn sdkPath(comptime suffix: []const u8) []const u8 {
31
if (suffix[0] != '/') @compileError("suffix must be an absolute path");
32
return comptime blk: {
0 commit comments