mirror of
https://github.com/ziglang/zig.git
synced 2025-12-22 14:13:08 +00:00
Add framework paths from NIX_CFLAGS_COMPILE
This commit is contained in:
parent
f38fd388f8
commit
d87a58dfab
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user