Skip to content

Commit

Permalink
Inline iteration of tests since elements are known at comptime
Browse files Browse the repository at this point in the history
  • Loading branch information
zadockmaloba committed Sep 27, 2024
1 parent 7f56705 commit d0fd80f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d0fd80f

Please sign in to comment.