From d0fd80f6f8e9345e161e3d2b5919d9d76147eacd Mon Sep 17 00:00:00 2001 From: Zadock Maloba <55388270+zadockmaloba@users.noreply.github.com> Date: Fri, 27 Sep 2024 16:46:39 +0300 Subject: [PATCH] Inline iteration of tests since elements are known at comptime --- build.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.zig b/build.zig index 3a0f217..ee370a9 100644 --- a/build.zig +++ b/build.zig @@ -254,7 +254,7 @@ pub fn build(b: *std.Build) !void { test5.addCSourceFiles(.{ .root = upstream.path("src/test/examples"), .files = &.{"testlo.c"} }); const tests = [_]*std.Build.Step.Compile{ test1, test2, test3, test4, test5 }; - for (tests) |t| { + inline for (tests) |t| { t.linkLibC(); for (libs) |lib| t.linkLibrary(lib);