std.Build.OptionsStep: update test case

This commit is contained in:
Andrew Kelley 2023-02-13 06:41:53 -07:00
parent 5c1f7288d9
commit e9c7e539e4

View File

@ -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();