fix windows-only test case not upgraded to new build API

This commit is contained in:
Andrew Kelley
2023-12-03 17:52:13 -07:00
parent 3963be03ec
commit f10b5268e8

View File

@@ -8,11 +8,11 @@ pub fn build(b: *std.Build) void {
// Building for the msvc abi requires a native MSVC installation
if (builtin.os.tag != .windows or builtin.cpu.arch != .x86_64) return;
const target = .{
const target = b.resolveTargetQuery(.{
.cpu_arch = .x86_64,
.os_tag = .windows,
.abi = .msvc,
};
});
const optimize: std.builtin.OptimizeMode = .Debug;
const obj = b.addObject(.{
.name = "issue_5825",