workaround for no equality operator for enum literal and tagged union

This commit is contained in:
Andrew Kelley 2019-07-03 18:41:52 -04:00
parent 372b615ace
commit d1cda00b36
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9

View File

@ -2311,7 +2311,7 @@ fn getDebugInfoAllocator() *mem.Allocator {
} }
/// Whether or not the current target can print useful debug information when a segfault occurs. /// Whether or not the current target can print useful debug information when a segfault occurs.
pub const have_segfault_handling_support = (builtin.arch == .x86_64 and builtin.os == .linux) or builtin.os == .windows; pub const have_segfault_handling_support = (builtin.arch == builtin.Arch.x86_64 and builtin.os == .linux) or builtin.os == .windows;
/// Attaches a global SIGSEGV handler which calls @panic("segmentation fault"); /// Attaches a global SIGSEGV handler which calls @panic("segmentation fault");
pub fn attachSegfaultHandler() void { pub fn attachSegfaultHandler() void {