| ... | @@ -1432,6 +1432,12 @@ fn buildOutputType( | ... | @@ -1432,6 +1432,12 @@ fn buildOutputType( |
| 1432 | } | 1432 | } |
| 1433 | } | 1433 | } |
| 1434 | | 1434 | |
| | 1435 | if (comptime std.Target.current.isDarwin()) { |
| | 1436 | // If we want to link against frameworks, we need system headers. |
| | 1437 | if (framework_dirs.items.len > 0 or frameworks.items.len > 0) |
| | 1438 | want_native_include_dirs = true; |
| | 1439 | } |
| | 1440 | |
| 1435 | if (cross_target.isNativeOs() and (system_libs.items.len != 0 or want_native_include_dirs)) { | 1441 | if (cross_target.isNativeOs() and (system_libs.items.len != 0 or want_native_include_dirs)) { |
| 1436 | const paths = std.zig.system.NativePaths.detect(arena) catch |err| { | 1442 | const paths = std.zig.system.NativePaths.detect(arena) catch |err| { |
| 1437 | fatal("unable to detect native system paths: {s}", .{@errorName(err)}); | 1443 | fatal("unable to detect native system paths: {s}", .{@errorName(err)}); |