diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-02-18 00:51:59 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-18 00:51:59 +0100 |
| commit | b732070fd36267fb055347e3aa8a1851e4054d50 (patch) | |
| tree | 9851eb03564eff472bbb4a605e13e4058baed4c6 /lib/std/Thread.zig | |
| parent | 55c46870b23ac16670beaa3ff1c082b703738307 (diff) | |
| parent | faccd79ca5debbe22fe168193b8de54393257604 (diff) | |
| download | zig-b732070fd36267fb055347e3aa8a1851e4054d50.tar.gz zig-b732070fd36267fb055347e3aa8a1851e4054d50.zip | |
Merge pull request #22589 from alexrp/target-changes
Some miscellaneous target and calling convention changes
Diffstat (limited to 'lib/std/Thread.zig')
| -rw-r--r-- | lib/std/Thread.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/Thread.zig b/lib/std/Thread.zig index 6dcb956184..eaf136d0eb 100644 --- a/lib/std/Thread.zig +++ b/lib/std/Thread.zig @@ -734,7 +734,7 @@ const PosixThreadImpl = struct { else => { var count: c_int = undefined; var count_len: usize = @sizeOf(c_int); - const name = if (comptime target.isDarwin()) "hw.logicalcpu" else "hw.ncpu"; + const name = if (comptime target.os.tag.isDarwin()) "hw.logicalcpu" else "hw.ncpu"; posix.sysctlbynameZ(name, &count, &count_len, null, 0) catch |err| switch (err) { error.NameTooLong, error.UnknownName => unreachable, else => |e| return e, |
