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

View File

@@ -1456,6 +1456,7 @@ pub fn getUserInfo(name: []const u8) !UserInfo {
.linux,
.macos,
.watchos,
.visionos,
.tvos,
.ios,
.freebsd,
@@ -1599,7 +1600,7 @@ pub const can_execv = switch (native_os) {
/// Tells whether spawning child processes is supported (e.g. via ChildProcess)
pub const can_spawn = switch (native_os) {
.wasi, .watchos, .tvos => false,
.wasi, .watchos, .tvos, .visionos => false,
else => true,
};