Skip to content

Commit d52de57

Browse files
committed
Add framework paths from NIX_CFLAGS_COMPILE
1 parent b83e4d9 commit d52de57

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/std/zig/system/NativePaths.zig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ pub fn detect(allocator: Allocator, native_info: NativeTargetInfo) !NativePaths
4040
break;
4141
};
4242
try self.addIncludeDir(include_path);
43+
} else if (mem.eql(u8, word, "-iframework")) {
44+
const framework_path = it.next() orelse {
45+
try self.addWarning("Expected argument after -iframework in NIX_CFLAGS_COMPILE");
46+
break;
47+
};
48+
try self.addFrameworkPath(framework_path);
4349
} else {
4450
if (mem.startsWith(u8, word, "-frandom-seed=")) {
4551
continue;

0 commit comments

Comments
 (0)