| ... | ... | @@ -53,8 +53,9 @@ pub var next_mmap_addr_hint: ?[*]align(page_size_min) u8 = null; |
| 53 | 53 | /// |
| 54 | 54 | /// On many systems, the actual page size can only be determined at runtime |
| 55 | 55 | /// with `pageSize`. |
| 56 | | pub const page_size_min: usize = std.options.page_size_min orelse (page_size_min_default orelse |
| 57 | | @compileError(@tagName(builtin.cpu.arch) ++ "-" ++ @tagName(builtin.os.tag) ++ " has unknown page_size_min; populate std.options.page_size_min")); |
| 56 | pub const page_size_min: usize = std.options.page_size_min orelse (page_size_min_default orelse 1); |
| 57 | //`orelse 1` is a workaround for https://codeberg.org/ziglang/zig/issues/30842 |
| 58 | //@compileError(@tagName(builtin.cpu.arch) ++ "-" ++ @tagName(builtin.os.tag) ++ " has unknown page_size_min; populate std.options.page_size_min")); |
| 58 | 59 | |
| 59 | 60 | /// comptime-known maximum page size of the target. |
| 60 | 61 | /// |