| author | |
| committer | |
| log | 30a35a897f2220d1b252d211c389cf0319170a94 |
| tree | cb76302551348fd83adaf16f7b41d6d7e7ebb316 |
| parent | e54fcdb5b290f2a7b2dad73f23e35289ad2ebefe |
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 | 237 | }; |
| 238 | 238 | } |
| 239 | 239 | |
| 240 | pub const have_getcontext = @hasDecl(posix.system, "getcontext") and | |
| 241 | native_os != .openbsd and native_os != .haiku and | |
| 240 | pub const have_getcontext = native_os != .openbsd and native_os != .haiku and | |
| 241 | !builtin.target.isAndroid() and | |
| 242 | 242 | (native_os != .linux or switch (builtin.cpu.arch) { |
| 243 | 243 | .x86, |
| 244 | 244 | .x86_64, |