Add framework paths from NIX_CFLAGS_COMPILE

This commit is contained in:
Marco Munizaga 2022-11-06 11:39:53 -08:00 committed by Veikka Tuominen
parent f38fd388f8
commit d87a58dfab

View File

@ -40,6 +40,12 @@ pub fn detect(allocator: Allocator, native_info: NativeTargetInfo) !NativePaths
break; break;
}; };
try self.addIncludeDir(include_path); try self.addIncludeDir(include_path);
} else if (mem.eql(u8, word, "-iframework")) {
const framework_path = it.next() orelse {
try self.addWarning("Expected argument after -iframework in NIX_CFLAGS_COMPILE");
break;
};
try self.addFrameworkDir(framework_path);
} else { } else {
if (mem.startsWith(u8, word, "-frandom-seed=")) { if (mem.startsWith(u8, word, "-frandom-seed=")) {
continue; continue;