aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug.zig
diff options
context:
space:
mode:
authorkcbanner <kcbanner@gmail.com>2023-07-04 13:40:50 -0400
committerkcbanner <kcbanner@gmail.com>2023-07-20 22:58:14 -0400
commit576ffaa3298b4e99b7e46d4eccad4763b18985f8 (patch)
tree5abb00cc3c329894f5d5bb2ad4743c3bd343481e /lib/std/debug.zig
parent412cd789bf38a8fb6126803b8eab601b700e5a9e (diff)
downloadzig-576ffaa3298b4e99b7e46d4eccad4763b18985f8.tar.gz
zig-576ffaa3298b4e99b7e46d4eccad4763b18985f8.zip
darwin: update mcontext_t definition for aarch64 to add neon state
Diffstat (limited to 'lib/std/debug.zig')
-rw-r--r--lib/std/debug.zig9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig
index 249674e0d4..eef65bd677 100644
--- a/lib/std/debug.zig
+++ b/lib/std/debug.zig
@@ -445,7 +445,14 @@ pub inline fn getContext(context: *StackTraceContext) bool {
}
const result = have_getcontext and os.system.getcontext(context) == 0;
- if (native_os == .macos) assert(context.mcsize == @sizeOf(std.c.mcontext_t));
+ if (native_os == .macos) {
+ // TODO: Temp, to discover this size via aarch64 CI
+ if (context.mcsize != @sizeOf(std.c.mcontext_t)) {
+ print("context.mcsize does not match! {} vs {}\n", .{ context.mcsize, @sizeOf(std.c.mcontext_t)});
+ }
+
+ assert(context.mcsize == @sizeOf(std.c.mcontext_t));
+ }
return result;
}