| ... | @@ -53,7 +53,11 @@ pub const path = @import("os/path.zig"); | ... | @@ -53,7 +53,11 @@ pub const path = @import("os/path.zig"); |
| 53 | pub const File = @import("os/file.zig").File; | 53 | pub const File = @import("os/file.zig").File; |
| 54 | pub const time = @import("os/time.zig"); | 54 | pub const time = @import("os/time.zig"); |
| 55 | | 55 | |
| 56 | pub const page_size = 4 * 1024; | 56 | pub const page_size = switch (builtin.arch) { |
| | 57 | .wasm32, .wasm64 => 64 * 1024, |
| | 58 | else => 4 * 1024, |
| | 59 | }; |
| | 60 | |
| 57 | pub const MAX_PATH_BYTES = switch (builtin.os) { | 61 | pub const MAX_PATH_BYTES = switch (builtin.os) { |
| 58 | Os.linux, Os.macosx, Os.ios, Os.freebsd, Os.netbsd => posix.PATH_MAX, | 62 | Os.linux, Os.macosx, Os.ios, Os.freebsd, Os.netbsd => posix.PATH_MAX, |
| 59 | // Each UTF-16LE character may be expanded to 3 UTF-8 bytes. | 63 | // Each UTF-16LE character may be expanded to 3 UTF-8 bytes. |