Tells whether unwinding for this target is supported by the Dwarf standard.
See also std.debug.SelfInfo.can_unwind which tells whether the Zig standard
library has a working implementation of unwinding for the current target.
pub fn supportsUnwinding(target: *const std.Target) bool
pub fn supportsUnwinding(target: *const std.Target) bool {
return switch (target.cpu.arch) {
.amdgcn,
.nvptx,
.nvptx64,
.spirv32,
.spirv64,
=> false,
// Conservative guess. Feel free to update this logic with any targets
// that are known to not support Dwarf unwinding.
else => true,
};
}