authorgravatar for george.thayamkery@gmail.comGeorge Thayamkery <george.thayamkery@gmail.com> 2024-05-30 11:49:30-05:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2024-05-31 01:25:49+03:00
log30a35a897f2220d1b252d211c389cf0319170a94
treecb76302551348fd83adaf16f7b41d6d7e7ebb316
parente54fcdb5b290f2a7b2dad73f23e35289ad2ebefe

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
...@@ -237,8 +237,8 @@ pub fn relocateContext(context: *ThreadContext) void {...@@ -237,8 +237,8 @@ pub fn relocateContext(context: *ThreadContext) void {
237 };237 };
238}238}
239239
240pub const have_getcontext = @hasDecl(posix.system, "getcontext") and240pub const have_getcontext = native_os != .openbsd and native_os != .haiku and
241 native_os != .openbsd and native_os != .haiku and241 !builtin.target.isAndroid() and
242 (native_os != .linux or switch (builtin.cpu.arch) {242 (native_os != .linux or switch (builtin.cpu.arch) {
243 .x86,243 .x86,
244 .x86_64,244 .x86_64,