diff options
| author | Mario Nachbaur <marionauta@users.noreply.github.com> | 2024-10-29 22:12:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-29 22:12:57 +0100 |
| commit | 4661705a0e9b28ea008ffb85258daf1d5510b054 (patch) | |
| tree | 078d340cf691e574bf2ec1ec49e4c1582f58e391 /lib/std/debug.zig | |
| parent | 3450809e3db14226b7f8e57bdfa7fde590e803d8 (diff) | |
| download | zig-4661705a0e9b28ea008ffb85258daf1d5510b054.tar.gz zig-4661705a0e9b28ea008ffb85258daf1d5510b054.zip | |
std.debug: watchOS: fixes for ilp32 ABI (#21765)
Xcode requires target arm64_32 (aarch64-watchos-ilp32) in order to
build code for Apple Watches. This commit fixes compilation errors
that appear when compiling with that target.
Diffstat (limited to 'lib/std/debug.zig')
| -rw-r--r-- | lib/std/debug.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig index 23b005ad49..8527677ebb 100644 --- a/lib/std/debug.zig +++ b/lib/std/debug.zig @@ -656,7 +656,7 @@ pub const StackIterator = struct { // The implementation of DWARF unwinding on aarch64-macos is not complete. However, Apple mandates that // the frame pointer register is always used, so on this platform we can safely use the FP-based unwinder. if (builtin.target.isDarwin() and native_arch == .aarch64) - return init(first_address, context.mcontext.ss.fp); + return init(first_address, @truncate(context.mcontext.ss.fp)); if (SelfInfo.supports_unwinding) { var iterator = init(first_address, null); |
