authorgravatar for george.thayamkery@gmail.comGeorge Thayamkery <george.thayamkery@gmail.com> 2024-05-30 11:49:30-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-06-06 10:44:39-07:00
log59dd7a0fbd5c06b89eea965b5fbc3f25e3eb21db
treeee5f47a7fc85adef378be24fc19735ad308ee5a9
parent0aeeff0d9434b37bb870e192091a563fc2a8dfce

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)

1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/debug.zig+2-2
......@@ -228,8 +228,8 @@ pub fn relocateContext(context: *ThreadContext) void {
228228 };
229229}
230230
231pub const have_getcontext = @hasDecl(posix.system, "getcontext") and
232 native_os != .openbsd and native_os != .haiku and
231pub const have_getcontext = native_os != .openbsd and native_os != .haiku and
232 !builtin.target.isAndroid() and
233233 (native_os != .linux or switch (builtin.cpu.arch) {
234234 .x86,
235235 .x86_64,