Skip to content

Commit ee70f27

Browse files
authored
Merge pull request #2 from der-teufel-programming/main
Add addPathsModule
2 parents 4186e9f + 494f62c commit ee70f27

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
@@ -21,6 +21,12 @@ pub fn addPaths(step: *std.Build.Step.Compile) void {
2121
step.addLibraryPath(.{ .cwd_relative = sdkPath("/lib") });
2222
}
2323

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+
2430
fn sdkPath(comptime suffix: []const u8) []const u8 {
2531
if (suffix[0] != '/') @compileError("suffix must be an absolute path");
2632
return comptime blk: {

0 commit comments

Comments
 (0)