Use -isysroot on Mojave too

This commit is contained in:
fn ⌃ ⌥ 2021-07-20 10:20:08 -07:00 committed by Jakub Konka
parent 14d8a1c10d
commit 24bfd7bddd

View File

@ -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");