mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
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)
This commit is contained in:
parent
0aeeff0d94
commit
59dd7a0fbd
@ -228,8 +228,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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user