| author | |
| committer | |
| log | 59dd7a0fbd5c06b89eea965b5fbc3f25e3eb21db |
| tree | ee5f47a7fc85adef378be24fc19735ad308ee5a9 |
| parent | 0aeeff0d9434b37bb870e192091a563fc2a8dfce |
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 { |
| 228 | 228 | }; |
| 229 | 229 | } |
| 230 | 230 | |
| 231 | pub const have_getcontext = @hasDecl(posix.system, "getcontext") and | |
| 232 | native_os != .openbsd and native_os != .haiku and | |
| 231 | pub const have_getcontext = native_os != .openbsd and native_os != .haiku and | |
| 232 | !builtin.target.isAndroid() and | |
| 233 | 233 | (native_os != .linux or switch (builtin.cpu.arch) { |
| 234 | 234 | .x86, |
| 235 | 235 | .x86_64, |