mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
handle visionos target OS tag in the compiler
* rename .xros to .visionos as agreed in the tracking issue * add support for VisionOS platform in the MachO linker
This commit is contained in:
+1
-1
@@ -205,7 +205,7 @@ pub const Instant = struct {
|
||||
},
|
||||
// On darwin, use UPTIME_RAW instead of MONOTONIC as it ticks while
|
||||
// suspended.
|
||||
.macos, .ios, .tvos, .watchos => posix.CLOCK.UPTIME_RAW,
|
||||
.macos, .ios, .tvos, .watchos, .visionos => posix.CLOCK.UPTIME_RAW,
|
||||
// On freebsd derivatives, use MONOTONIC_FAST as currently there's
|
||||
// no precision tradeoff.
|
||||
.freebsd, .dragonfly => posix.CLOCK.MONOTONIC_FAST,
|
||||
|
||||
Reference in New Issue
Block a user