aboutsummaryrefslogtreecommitdiff
path: root/src/Zcu/PerThread.zig
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2025-11-13 18:05:46 +0100
committerAlex Rønne Petersen <alex@alexrp.com>2025-11-14 11:33:35 +0100
commit9ab7eec23e6aa1fc8d5659566e426816ba573537 (patch)
treeb6b7bbdbccd75ced24eeb677959d41be06b311ff /src/Zcu/PerThread.zig
parent2e6f7d36b9292b2a88a28c3caab767cd9401175d (diff)
downloadzig-9ab7eec23e6aa1fc8d5659566e426816ba573537.tar.gz
zig-9ab7eec23e6aa1fc8d5659566e426816ba573537.zip
represent Mac Catalyst as aarch64-maccatalyst-none rather than aarch64-ios-macabi
Apple's own headers and tbd files prefer to think of Mac Catalyst as a distinct OS target. Earlier, when DriverKit support was added to LLVM, it was represented a distinct OS. So why Apple decided to only represent Mac Catalyst as an ABI in the target triple is beyond me. But this isn't the first time they've ignored established target triple norms (see: armv7k and aarch64_32) and it probably won't be the last. While doing this, I also audited all Darwin OS prongs throughout the codebase and made sure they cover all the tags.
Diffstat (limited to 'src/Zcu/PerThread.zig')
-rw-r--r--src/Zcu/PerThread.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Zcu/PerThread.zig b/src/Zcu/PerThread.zig
index 41b5a32f6e..ce7d44c4b6 100644
--- a/src/Zcu/PerThread.zig
+++ b/src/Zcu/PerThread.zig
@@ -189,7 +189,7 @@ pub fn updateFile(
// disambiguates by returning EEXIST, indicating original
// failure was a race, or ENOENT, indicating deletion of the
// directory of our open handle.
- if (builtin.os.tag != .macos) {
+ if (!builtin.os.tag.isDarwin()) {
std.process.fatal("cache directory '{f}' unexpectedly removed during compiler execution", .{
cache_directory,
});