Commit e9c7e539e4

Andrew Kelley <andrew@ziglang.org>
2023-02-13 14:41:53
std.Build.OptionsStep: update test case
1 parent 5c1f728
Changed files (1)
lib
std
lib/std/Build/OptionsStep.zig
@@ -283,13 +283,19 @@ test "OptionsStep" {
 
     const host = try std.zig.system.NativeTargetInfo.detect(.{});
 
+    var cache: std.Build.Cache = .{
+        .gpa = arena.allocator(),
+        .manifest_dir = std.fs.cwd(),
+    };
+
     var builder = try std.Build.create(
         arena.allocator(),
         "test",
-        "test",
-        "test",
-        "test",
+        .{ .path = "test", .handle = std.fs.cwd() },
+        .{ .path = "test", .handle = std.fs.cwd() },
+        .{ .path = "test", .handle = std.fs.cwd() },
         host,
+        &cache,
     );
     defer builder.destroy();