Commit 8d37c6f71c

Andrew Kelley <andrew@ziglang.org>
2023-01-31 23:34:08
std.Build.CompileStep: fix API usage in unit test
1 parent 7d14bae
Changed files (1)
lib
std
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);