diff options
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -174,12 +174,12 @@ pub fn build(b: *Build) void { }) |module| test_step.dependOn(&b.addRunArtifact(b.addTest(.{ .root_module = module })).step); // A State bigger than a save holds is a compile error that says what to do. const too_big = b.addObject(.{ .name = "too_big", .root_module = b.createModule(.{ - .root_source_file = b.addWriteFiles().add("too_big.zig", "comptime { _ = @import(\"abi\").layout.of(struct { bytes: [(64 << 20) + 1]u8 }, .state); }"), + .root_source_file = b.addWriteFiles().add("too_big.zig", "comptime { _ = @import(\"abi\").layout.of(struct { bytes: [(32 << 20) + 1]u8 }, .state); }"), .target = target, .optimize = optimize, .imports = &.{.{ .name = "abi", .module = abi }}, }) }); - too_big.expect_errors = .{ .contains = "a save holds at most 64 MiB: lower a capacity (an array, an sk.List), or keep what need not be saved in Session." }; + too_big.expect_errors = .{ .contains = "may be 32 MiB, half of a save, so history has room: lower a capacity (an array, an sk.List), or keep what need not be saved in Session." }; test_step.dependOn(&too_big.step); // The anim module alone: its unit tests, and below the player's scenes. const test_anim = b.step("test-anim", "Test the anim module: its unit tests and the player on its test scenes"); @@ -1226,8 +1226,9 @@ pub const App = struct { /// Imports for the app's root module, besides `sketch`: for example /// `sb.modules.vector`, or shaders from `addSpirvModule`. imports: []const Build.Module.Import = &.{}, - /// Record every interactive run's sessions to a file beside its - /// state (src/host/Sessions.zig). Null: in Debug builds only. A + /// Keep every run's history in the save, the newest 64 MiB of it + /// (src/host/Sessions.zig); without, the save keeps the present and + /// the marks only. Null: in Debug builds only. A /// playtest build of a release opts in with one line, /// `.record = b.option(bool, "record", "collect sessions in a release build")`. record: ?bool = null, |
