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:
Jakub Konka
2024-05-09 15:04:13 +02:00
parent 8f202ba7c7
commit 2e1fc0dd14
25 changed files with 82 additions and 68 deletions
+1 -1
View File
@@ -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,