aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug.zig
diff options
context:
space:
mode:
authorMichael Dusan <michael.dusan@gmail.com>2023-08-17 10:50:52 -0400
committerMichael Dusan <michael.dusan@gmail.com>2023-08-17 10:55:39 -0400
commite288c546996d202e87168f25d689a2f21fe03b60 (patch)
tree1957a7fb21a2f81f6984fbc4d95f8edb77e133a9 /lib/std/debug.zig
parentc685b675e547f61c81c5fb63159bc12b26405100 (diff)
downloadzig-e288c546996d202e87168f25d689a2f21fe03b60.tar.gz
zig-e288c546996d202e87168f25d689a2f21fe03b60.zip
std.debug: openbsd does not have getcontext
Diffstat (limited to 'lib/std/debug.zig')
-rw-r--r--lib/std/debug.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig
index 0657d667c2..7a32271953 100644
--- a/lib/std/debug.zig
+++ b/lib/std/debug.zig
@@ -168,6 +168,7 @@ pub fn relocateContext(context: *ThreadContext) void {
}
pub const have_getcontext = @hasDecl(os.system, "getcontext") and
+ builtin.os.tag != .openbsd and
(builtin.os.tag != .linux or switch (builtin.cpu.arch) {
.x86,
.x86_64,