aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug.zig
diff options
context:
space:
mode:
authorGeorge Thayamkery <george.thayamkery@gmail.com>2024-05-30 11:49:30 -0500
committerVeikka Tuominen <git@vexu.eu>2024-05-31 01:25:49 +0300
commit30a35a897f2220d1b252d211c389cf0319170a94 (patch)
treecb76302551348fd83adaf16f7b41d6d7e7ebb316 /lib/std/debug.zig
parente54fcdb5b290f2a7b2dad73f23e35289ad2ebefe (diff)
downloadzig-30a35a897f2220d1b252d211c389cf0319170a94.tar.gz
zig-30a35a897f2220d1b252d211c389cf0319170a94.zip
not android check on std.debug.getContext
have_getcontext must be false for android, this makes sure that std.debug.getContext wont call the non-existant function (and thus hit a compileError)
Diffstat (limited to 'lib/std/debug.zig')
-rw-r--r--lib/std/debug.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig
index 44bcf3abc1..f431d0eb91 100644
--- a/lib/std/debug.zig
+++ b/lib/std/debug.zig
@@ -237,8 +237,8 @@ pub fn relocateContext(context: *ThreadContext) void {
};
}
-pub const have_getcontext = @hasDecl(posix.system, "getcontext") and
- native_os != .openbsd and native_os != .haiku and
+pub const have_getcontext = native_os != .openbsd and native_os != .haiku and
+ !builtin.target.isAndroid() and
(native_os != .linux or switch (builtin.cpu.arch) {
.x86,
.x86_64,