Use -isysroot on Mojave too

This commit is contained in:
fn ⌃ ⌥
2021-07-20 10:20:08 -07:00
committed by Andrew Kelley
parent c9ab6baf06
commit d38bd443ef

View File

@@ -1639,8 +1639,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");