aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2024-05-09 15:04:13 +0200
committerJakub Konka <kubkon@jakubkonka.com>2024-05-09 15:04:15 +0200
commit2e1fc0dd14c2897cd6fb4ff433bff2e5297272cb (patch)
tree342325fd62cc47755cf1dddf7305365d298f6fe6 /lib/std/debug.zig
parent8f202ba7c7c446da9dff4b9ca2bbfb5b21c0aa18 (diff)
downloadzig-2e1fc0dd14c2897cd6fb4ff433bff2e5297272cb.tar.gz
zig-2e1fc0dd14c2897cd6fb4ff433bff2e5297272cb.zip
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
Diffstat (limited to 'lib/std/debug.zig')
-rw-r--r--lib/std/debug.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig
index ae82e76f1a..980b027f0a 100644
--- a/lib/std/debug.zig
+++ b/lib/std/debug.zig
@@ -706,7 +706,7 @@ pub const StackIterator = struct {
const unwind_state = &self.unwind_state.?;
const module = try unwind_state.debug_info.getModuleForAddress(unwind_state.dwarf_context.pc);
switch (native_os) {
- .macos, .ios, .watchos, .tvos => {
+ .macos, .ios, .watchos, .tvos, .visionos => {
// __unwind_info is a requirement for unwinding on Darwin. It may fall back to DWARF, but unwinding
// via DWARF before attempting to use the compact unwind info will produce incorrect results.
if (module.unwind_info) |unwind_info| {
@@ -2132,7 +2132,7 @@ pub const DebugInfo = struct {
};
pub const ModuleDebugInfo = switch (native_os) {
- .macos, .ios, .watchos, .tvos => struct {
+ .macos, .ios, .watchos, .tvos, .visionos => struct {
base_address: usize,
vmaddr_slide: usize,
mapped_memory: []align(mem.page_size) const u8,