mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:24:33 +01:00
std: workaround for #30842
This commit is contained in:
parent
470d0dd9c6
commit
08a33c0671
1 changed files with 3 additions and 2 deletions
|
|
@ -53,8 +53,9 @@ pub var next_mmap_addr_hint: ?[*]align(page_size_min) u8 = null;
|
|||
///
|
||||
/// On many systems, the actual page size can only be determined at runtime
|
||||
/// with `pageSize`.
|
||||
pub const page_size_min: usize = std.options.page_size_min orelse (page_size_min_default orelse
|
||||
@compileError(@tagName(builtin.cpu.arch) ++ "-" ++ @tagName(builtin.os.tag) ++ " has unknown page_size_min; populate std.options.page_size_min"));
|
||||
pub const page_size_min: usize = std.options.page_size_min orelse (page_size_min_default orelse 1);
|
||||
//`orelse 1` is a workaround for https://codeberg.org/ziglang/zig/issues/30842
|
||||
//@compileError(@tagName(builtin.cpu.arch) ++ "-" ++ @tagName(builtin.os.tag) ++ " has unknown page_size_min; populate std.options.page_size_min"));
|
||||
|
||||
/// comptime-known maximum page size of the target.
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue