summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig6
1 files changed, 4 insertions, 2 deletions
diff --git a/build.zig b/build.zig
index 5e88ef68..4485140d 100644
--- a/build.zig
+++ b/build.zig
@@ -1928,18 +1928,20 @@ pub fn build(b: *std.Build) void {
const history_step = b.step("history-test", "test historical comparisons and regression gates");
const protocol_match = testMatch(b, unit_profile, test_filters, protocol_step);
const history_match = testMatch(b, unit_profile, test_filters, history_step);
- for ([_]struct { path: []const u8, libc: bool }{
+ for ([_]struct { path: []const u8, libc: bool, optimize: ?std.builtin.OptimizeMode = null }{
.{ .path = "test/history.zig", .libc = false },
.{ .path = "src/9p.zig", .libc = false },
.{ .path = "src/esp32p4_gpio.zig", .libc = false },
.{ .path = "src/esp32p4/input_rescue.zig", .libc = false },
.{ .path = "src/fonts.zig", .libc = true },
.{ .path = "src/c_heap.zig", .libc = false },
+ // Its lookup goes wrong only where the optimizer folds it.
+ .{ .path = "src/c_heap.zig", .libc = false, .optimize = .ReleaseSafe },
}) |entry| {
const tests = b.addTest(.{
.root_module = b.createModule(.{
.target = target,
- .optimize = optimize,
+ .optimize = entry.optimize orelse optimize,
.root_source_file = b.path(entry.path),
.link_libc = entry.libc,
}),