Function supportsUnwinding [src]

Tells whether unwinding for this target is supported by the Dwarf standard. See also std.debug.SelfInfo.supportsUnwinding which tells whether the Zig standard library has a working implementation of unwinding for this target.

Prototype

pub fn supportsUnwinding(target: std.Target) bool

Parameters

target: std.Target

Source

pub fn supportsUnwinding(target: std.Target) bool { return switch (target.cpu.arch) { .amdgcn, .nvptx, .nvptx64, .spirv, .spirv32, .spirv64, => false, // Enabling this causes relocation errors such as: // error: invalid relocation type R_RISCV_SUB32 at offset 0x20 .riscv64, .riscv32 => false, // Conservative guess. Feel free to update this logic with any targets // that are known to not support Dwarf unwinding. else => true, }; }