zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 8d37c6f71c790faecdb6acdd2868823be2bd2496 (tree)
parent 7d14baec900efbbbae0ae25da79f976716241ec0
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Tue, 31 Jan 2023 15:34:08 -0700

std.Build.CompileStep: fix API usage in unit test

Diffstat:
Mlib/std/Build/CompileStep.zig | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/std/Build/CompileStep.zig b/lib/std/Build/CompileStep.zig @@ -1970,7 +1970,10 @@ test "addPackage" { .dependencies = &[_]Pkg{pkg_dep}, }; - var exe = builder.addExecutable("not_an_executable", "/not/an/executable.zig"); + var exe = builder.addExecutable(.{ + .name = "not_an_executable", + .root_source_file = .{ .path = "/not/an/executable.zig" }, + }); exe.addPackage(pkg_top); try std.testing.expectEqual(@as(usize, 1), exe.packages.items.len);