mirror of
https://github.com/ziglang/zig.git
synced 2025-12-27 00:23:22 +00:00
Use -isysroot on Mojave too
This commit is contained in:
parent
14d8a1c10d
commit
24bfd7bddd
@ -1685,8 +1685,8 @@ fn buildOutputType(
|
||||
|
||||
const has_sysroot = if (comptime std.Target.current.isDarwin()) outer: {
|
||||
const min = target_info.target.os.getVersionRange().semver.min;
|
||||
const at_least_catalina = min.major >= 11 or (min.major >= 10 and min.minor >= 15);
|
||||
if (at_least_catalina) {
|
||||
const at_least_mojave = min.major >= 11 or (min.major >= 10 and min.minor >= 14);
|
||||
if (at_least_mojave) {
|
||||
const sdk_path = try std.zig.system.getSDKPath(arena);
|
||||
try clang_argv.ensureCapacity(clang_argv.items.len + 2);
|
||||
clang_argv.appendAssumeCapacity("-isysroot");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user