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
@@ -5280,7 +5280,7 @@ pub fn addCCArgs(
// doesn't matter which one gets overridden.
argv.appendAssumeCapacity("-Wno-overriding-option");
},
.ios, .tvos, .watchos => switch (target.cpu.arch) {
.ios => switch (target.cpu.arch) {
// Pass the proper -m<os>-version-min argument for darwin.
.x86, .x86_64 => {
const ver = target.os.version_range.semver.min;