authorgravatar for der.teufel.mail@gmail.comKrzysztof Wolicki <der.teufel.mail@gmail.com> 2024-06-13 14:00:22+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-06-13 10:49:06-04:00
log45c77931c2f292574c0049cab574b0208914b9b9
treeac58d3a63487cca95bc6a28ef4700c55d1bbea59
parent76fb2b685b202ea665b850338e353c7816f5b2bb

Change deprecated b.host to b.graph.host in tests and Zig's build.zig


39 files changed, 69 insertions(+), 69 deletions(-)

build.zig+4-4
......@@ -72,7 +72,7 @@ pub fn build(b: *std.Build) !void {
7272 const check_case_exe = b.addExecutable(.{
7373 .name = "check-case",
7474 .root_source_file = b.path("test/src/Cases.zig"),
75 .target = b.host,
75 .target = b.graph.host,
7676 .optimize = optimize,
7777 .single_threaded = single_threaded,
7878 });
......@@ -541,7 +541,7 @@ pub fn build(b: *std.Build) !void {
541541 const opt_mingw_src_path = b.option([]const u8, "mingw-src", "path to mingw-w64 source directory");
542542 const update_mingw_exe = b.addExecutable(.{
543543 .name = "update_mingw",
544 .target = b.host,
544 .target = b.graph.host,
545545 .root_source_file = b.path("tools/update_mingw.zig"),
546546 });
547547 const update_mingw_run = b.addRunArtifact(update_mingw_exe);
......@@ -1259,7 +1259,7 @@ fn generateLangRef(b: *std.Build) std.Build.LazyPath {
12591259 const doctest_exe = b.addExecutable(.{
12601260 .name = "doctest",
12611261 .root_source_file = b.path("tools/doctest.zig"),
1262 .target = b.host,
1262 .target = b.graph.host,
12631263 .optimize = .Debug,
12641264 });
12651265
......@@ -1297,7 +1297,7 @@ fn generateLangRef(b: *std.Build) std.Build.LazyPath {
12971297 const docgen_exe = b.addExecutable(.{
12981298 .name = "docgen",
12991299 .root_source_file = b.path("tools/docgen.zig"),
1300 .target = b.host,
1300 .target = b.graph.host,
13011301 .optimize = .Debug,
13021302 });
13031303
test/compile_errors.zig+10-10
......@@ -4,7 +4,7 @@ const Cases = @import("src/Cases.zig");
44
55pub fn addCases(ctx: *Cases, b: *std.Build) !void {
66 {
7 const case = ctx.obj("multiline error messages", b.host);
7 const case = ctx.obj("multiline error messages", b.graph.host);
88
99 case.addError(
1010 \\comptime {
......@@ -39,7 +39,7 @@ pub fn addCases(ctx: *Cases, b: *std.Build) !void {
3939 }
4040
4141 {
42 const case = ctx.obj("isolated carriage return in multiline string literal", b.host);
42 const case = ctx.obj("isolated carriage return in multiline string literal", b.graph.host);
4343
4444 case.addError("const foo = \\\\\test\r\r rogue carriage return\n;", &[_][]const u8{
4545 ":1:19: error: expected ';' after declaration",
......@@ -48,7 +48,7 @@ pub fn addCases(ctx: *Cases, b: *std.Build) !void {
4848 }
4949
5050 {
51 const case = ctx.obj("missing semicolon at EOF", b.host);
51 const case = ctx.obj("missing semicolon at EOF", b.graph.host);
5252 case.addError(
5353 \\const foo = 1
5454 , &[_][]const u8{
......@@ -57,7 +57,7 @@ pub fn addCases(ctx: *Cases, b: *std.Build) !void {
5757 }
5858
5959 {
60 const case = ctx.obj("argument causes error", b.host);
60 const case = ctx.obj("argument causes error", b.graph.host);
6161
6262 case.addError(
6363 \\pub export fn entry() void {
......@@ -80,7 +80,7 @@ pub fn addCases(ctx: *Cases, b: *std.Build) !void {
8080 }
8181
8282 {
83 const case = ctx.obj("astgen failure in file struct", b.host);
83 const case = ctx.obj("astgen failure in file struct", b.graph.host);
8484
8585 case.addError(
8686 \\pub export fn entry() void {
......@@ -95,7 +95,7 @@ pub fn addCases(ctx: *Cases, b: *std.Build) !void {
9595 }
9696
9797 {
98 const case = ctx.obj("invalid store to comptime field", b.host);
98 const case = ctx.obj("invalid store to comptime field", b.graph.host);
9999
100100 case.addError(
101101 \\const a = @import("a.zig");
......@@ -119,7 +119,7 @@ pub fn addCases(ctx: *Cases, b: *std.Build) !void {
119119 }
120120
121121 {
122 const case = ctx.obj("file in multiple modules", b.host);
122 const case = ctx.obj("file in multiple modules", b.graph.host);
123123 case.addDepModule("foo", "foo.zig");
124124
125125 case.addError(
......@@ -138,7 +138,7 @@ pub fn addCases(ctx: *Cases, b: *std.Build) !void {
138138 }
139139
140140 {
141 const case = ctx.obj("wrong same named struct", b.host);
141 const case = ctx.obj("wrong same named struct", b.graph.host);
142142
143143 case.addError(
144144 \\const a = @import("a.zig");
......@@ -172,7 +172,7 @@ pub fn addCases(ctx: *Cases, b: *std.Build) !void {
172172 }
173173
174174 {
175 const case = ctx.obj("non-printable invalid character", b.host);
175 const case = ctx.obj("non-printable invalid character", b.graph.host);
176176
177177 case.addError("\xff\xfe" ++
178178 \\export fn foo() bool {
......@@ -185,7 +185,7 @@ pub fn addCases(ctx: *Cases, b: *std.Build) !void {
185185 }
186186
187187 {
188 const case = ctx.obj("imported generic method call with invalid param", b.host);
188 const case = ctx.obj("imported generic method call with invalid param", b.graph.host);
189189
190190 case.addError(
191191 \\pub const import = @import("import.zig");
test/link/bss/build.zig+1-1
......@@ -7,7 +7,7 @@ pub fn build(b: *std.Build) void {
77 const exe = b.addExecutable(.{
88 .name = "bss",
99 .root_source_file = b.path("main.zig"),
10 .target = b.host,
10 .target = b.graph.host,
1111 .optimize = .Debug,
1212 });
1313
test/link/common_symbols/build.zig+1-1
......@@ -14,7 +14,7 @@ fn add(b: *std.Build, test_step: *std.Build.Step, optimize: std.builtin.Optimize
1414 const lib_a = b.addStaticLibrary(.{
1515 .name = "a",
1616 .optimize = optimize,
17 .target = b.host,
17 .target = b.graph.host,
1818 });
1919 lib_a.addCSourceFiles(.{
2020 .files = &.{ "c.c", "a.c", "b.c" },
test/link/common_symbols_alignment/build.zig+1-1
......@@ -14,7 +14,7 @@ fn add(b: *std.Build, test_step: *std.Build.Step, optimize: std.builtin.Optimize
1414 const lib_a = b.addStaticLibrary(.{
1515 .name = "a",
1616 .optimize = optimize,
17 .target = b.host,
17 .target = b.graph.host,
1818 });
1919 lib_a.addCSourceFiles(.{
2020 .files = &.{"a.c"},
test/link/interdependent_static_c_libs/build.zig+2-2
......@@ -14,7 +14,7 @@ fn add(b: *std.Build, test_step: *std.Build.Step, optimize: std.builtin.Optimize
1414 const lib_a = b.addStaticLibrary(.{
1515 .name = "a",
1616 .optimize = optimize,
17 .target = b.host,
17 .target = b.graph.host,
1818 });
1919 lib_a.addCSourceFile(.{ .file = b.path("a.c"), .flags = &[_][]const u8{} });
2020 lib_a.addIncludePath(b.path("."));
......@@ -22,7 +22,7 @@ fn add(b: *std.Build, test_step: *std.Build.Step, optimize: std.builtin.Optimize
2222 const lib_b = b.addStaticLibrary(.{
2323 .name = "b",
2424 .optimize = optimize,
25 .target = b.host,
25 .target = b.graph.host,
2626 });
2727 lib_b.addCSourceFile(.{ .file = b.path("b.c"), .flags = &[_][]const u8{} });
2828 lib_b.addIncludePath(b.path("."));
test/link/macho.zig+8-8
......@@ -83,14 +83,14 @@ pub fn testAll(b: *Build, build_opts: BuildOptions) *Step {
8383
8484 // Tests requiring presence of macOS SDK in system path
8585 if (build_opts.has_macos_sdk) {
86 macho_step.dependOn(testDeadStripDylibs(b, .{ .target = b.host }));
87 macho_step.dependOn(testHeaderpad(b, .{ .target = b.host }));
88 macho_step.dependOn(testLinkDirectlyCppTbd(b, .{ .target = b.host }));
89 macho_step.dependOn(testMergeLiteralsObjc(b, .{ .target = b.host }));
90 macho_step.dependOn(testNeededFramework(b, .{ .target = b.host }));
91 macho_step.dependOn(testObjc(b, .{ .target = b.host }));
92 macho_step.dependOn(testObjcpp(b, .{ .target = b.host }));
93 macho_step.dependOn(testWeakFramework(b, .{ .target = b.host }));
86 macho_step.dependOn(testDeadStripDylibs(b, .{ .target = b.graph.host }));
87 macho_step.dependOn(testHeaderpad(b, .{ .target = b.graph.host }));
88 macho_step.dependOn(testLinkDirectlyCppTbd(b, .{ .target = b.graph.host }));
89 macho_step.dependOn(testMergeLiteralsObjc(b, .{ .target = b.graph.host }));
90 macho_step.dependOn(testNeededFramework(b, .{ .target = b.graph.host }));
91 macho_step.dependOn(testObjc(b, .{ .target = b.graph.host }));
92 macho_step.dependOn(testObjcpp(b, .{ .target = b.graph.host }));
93 macho_step.dependOn(testWeakFramework(b, .{ .target = b.graph.host }));
9494 }
9595 }
9696
test/link/static_libs_from_object_files/build.zig+8-8
......@@ -59,7 +59,7 @@ fn add(b: *Build, test_step: *Step, files: []const LazyPath, optimize: std.built
5959 .name = "test1",
6060 .root_source_file = b.path("main.zig"),
6161 .optimize = optimize,
62 .target = b.host,
62 .target = b.graph.host,
6363 });
6464
6565 for (files) |file| {
......@@ -77,12 +77,12 @@ fn add(b: *Build, test_step: *Step, files: []const LazyPath, optimize: std.built
7777 {
7878 const lib_a = b.addStaticLibrary(.{
7979 .name = "test2_a",
80 .target = b.host,
80 .target = b.graph.host,
8181 .optimize = optimize,
8282 });
8383 const lib_b = b.addStaticLibrary(.{
8484 .name = "test2_b",
85 .target = b.host,
85 .target = b.graph.host,
8686 .optimize = optimize,
8787 });
8888
......@@ -94,7 +94,7 @@ fn add(b: *Build, test_step: *Step, files: []const LazyPath, optimize: std.built
9494 const exe = b.addExecutable(.{
9595 .name = "test2",
9696 .root_source_file = b.path("main.zig"),
97 .target = b.host,
97 .target = b.graph.host,
9898 .optimize = optimize,
9999 });
100100 exe.linkLibrary(lib_a);
......@@ -111,19 +111,19 @@ fn add(b: *Build, test_step: *Step, files: []const LazyPath, optimize: std.built
111111 {
112112 const lib_a = b.addStaticLibrary(.{
113113 .name = "test3_a",
114 .target = b.host,
114 .target = b.graph.host,
115115 .optimize = optimize,
116116 });
117117 const lib_b = b.addStaticLibrary(.{
118118 .name = "test3_b",
119 .target = b.host,
119 .target = b.graph.host,
120120 .optimize = optimize,
121121 });
122122
123123 for (files, 1..) |file, i| {
124124 const obj = b.addObject(.{
125125 .name = b.fmt("obj_{}", .{i}),
126 .target = b.host,
126 .target = b.graph.host,
127127 .optimize = optimize,
128128 });
129129 obj.addCSourceFile(.{ .file = file, .flags = &flags });
......@@ -135,7 +135,7 @@ fn add(b: *Build, test_step: *Step, files: []const LazyPath, optimize: std.built
135135 const exe = b.addExecutable(.{
136136 .name = "test3",
137137 .root_source_file = b.path("main.zig"),
138 .target = b.host,
138 .target = b.graph.host,
139139 .optimize = optimize,
140140 });
141141 exe.linkLibrary(lib_a);
test/src/CompareOutput.zig+3-3
......@@ -96,7 +96,7 @@ pub fn addCase(self: *CompareOutput, case: TestCase) void {
9696
9797 const exe = b.addExecutable(.{
9898 .name = "test",
99 .target = b.host,
99 .target = b.graph.host,
100100 .optimize = .Debug,
101101 });
102102 exe.addAssemblyFile(write_src.files.items[0].getPath());
......@@ -121,7 +121,7 @@ pub fn addCase(self: *CompareOutput, case: TestCase) void {
121121 .name = "test",
122122 .root_source_file = write_src.files.items[0].getPath(),
123123 .optimize = optimize,
124 .target = b.host,
124 .target = b.graph.host,
125125 });
126126 if (case.link_libc) {
127127 exe.linkSystemLibrary("c");
......@@ -146,7 +146,7 @@ pub fn addCase(self: *CompareOutput, case: TestCase) void {
146146 const exe = b.addExecutable(.{
147147 .name = "test",
148148 .root_source_file = write_src.files.items[0].getPath(),
149 .target = b.host,
149 .target = b.graph.host,
150150 .optimize = .Debug,
151151 });
152152 if (case.link_libc) {
test/src/RunTranslatedC.zig+1-1
......@@ -77,7 +77,7 @@ pub fn addCase(self: *RunTranslatedCContext, case: *const TestCase) void {
7777 }
7878 const translate_c = b.addTranslateC(.{
7979 .root_source_file = write_src.files.items[0].getPath(),
80 .target = b.host,
80 .target = b.graph.host,
8181 .optimize = .Debug,
8282 });
8383
test/src/StackTrace.zig+1-1
......@@ -56,7 +56,7 @@ fn addExpect(
5656 .name = "test",
5757 .root_source_file = write_src.files.items[0].getPath(),
5858 .optimize = optimize_mode,
59 .target = b.host,
59 .target = b.graph.host,
6060 .error_tracing = mode_config.error_tracing,
6161 });
6262
test/standalone/c_compiler/build.zig+1-1
......@@ -23,7 +23,7 @@ fn add(
2323 cpp_name: []const u8,
2424 optimize: std.builtin.OptimizeMode,
2525) void {
26 const target = b.host;
26 const target = b.graph.host;
2727
2828 const exe_c = b.addExecutable(.{
2929 .name = c_name,
test/standalone/child_process/build.zig+1-1
......@@ -6,7 +6,7 @@ pub fn build(b: *std.Build) void {
66 b.default_step = test_step;
77
88 const optimize: std.builtin.OptimizeMode = .Debug;
9 const target = b.host;
9 const target = b.graph.host;
1010
1111 if (builtin.os.tag == .wasi) return;
1212
test/standalone/dep_diamond/build.zig+1-1
......@@ -13,7 +13,7 @@ pub fn build(b: *std.Build) void {
1313 const exe = b.addExecutable(.{
1414 .name = "test",
1515 .root_source_file = b.path("test.zig"),
16 .target = b.host,
16 .target = b.graph.host,
1717 .optimize = optimize,
1818 });
1919 exe.root_module.addAnonymousImport("foo", .{
test/standalone/dep_mutually_recursive/build.zig+1-1
......@@ -18,7 +18,7 @@ pub fn build(b: *std.Build) void {
1818 const exe = b.addExecutable(.{
1919 .name = "test",
2020 .root_source_file = b.path("test.zig"),
21 .target = b.host,
21 .target = b.graph.host,
2222 .optimize = optimize,
2323 });
2424 exe.root_module.addImport("foo", foo);
test/standalone/dep_recursive/build.zig+1-1
......@@ -14,7 +14,7 @@ pub fn build(b: *std.Build) void {
1414 const exe = b.addExecutable(.{
1515 .name = "test",
1616 .root_source_file = b.path("test.zig"),
17 .target = b.host,
17 .target = b.graph.host,
1818 .optimize = optimize,
1919 });
2020 exe.root_module.addImport("foo", foo);
test/standalone/dep_shared_builtin/build.zig+1-1
......@@ -9,7 +9,7 @@ pub fn build(b: *std.Build) void {
99 const exe = b.addExecutable(.{
1010 .name = "test",
1111 .root_source_file = b.path("test.zig"),
12 .target = b.host,
12 .target = b.graph.host,
1313 .optimize = optimize,
1414 });
1515 exe.root_module.addAnonymousImport("foo", .{
test/standalone/dep_triangle/build.zig+1-1
......@@ -13,7 +13,7 @@ pub fn build(b: *std.Build) void {
1313 const exe = b.addExecutable(.{
1414 .name = "test",
1515 .root_source_file = b.path("test.zig"),
16 .target = b.host,
16 .target = b.graph.host,
1717 .optimize = optimize,
1818 });
1919 exe.root_module.addAnonymousImport("foo", .{
test/standalone/empty_env/build.zig+1-1
......@@ -15,7 +15,7 @@ pub fn build(b: *std.Build) void {
1515 const main = b.addExecutable(.{
1616 .name = "main",
1717 .root_source_file = b.path("main.zig"),
18 .target = b.host,
18 .target = b.graph.host,
1919 .optimize = optimize,
2020 });
2121
test/standalone/extern/build.zig+1-1
......@@ -6,7 +6,7 @@ pub fn build(b: *std.Build) void {
66 const obj = b.addObject(.{
77 .name = "exports",
88 .root_source_file = b.path("exports.zig"),
9 .target = b.host,
9 .target = b.graph.host,
1010 .optimize = optimize,
1111 });
1212 const main = b.addTest(.{
test/standalone/global_linkage/build.zig+1-1
......@@ -5,7 +5,7 @@ pub fn build(b: *std.Build) void {
55 b.default_step = test_step;
66
77 const optimize: std.builtin.OptimizeMode = .Debug;
8 const target = b.host;
8 const target = b.graph.host;
99
1010 const obj1 = b.addStaticLibrary(.{
1111 .name = "obj1",
test/standalone/issue_11595/build.zig+1-1
......@@ -6,7 +6,7 @@ pub fn build(b: *std.Build) void {
66 b.default_step = test_step;
77
88 const optimize: std.builtin.OptimizeMode = .Debug;
9 const target = b.host;
9 const target = b.graph.host;
1010
1111 if (builtin.os.tag == .windows) {
1212 // https://github.com/ziglang/zig/issues/12419
test/standalone/issue_12588/build.zig+1-1
......@@ -10,7 +10,7 @@ pub fn build(b: *std.Build) void {
1010 .name = "main",
1111 .root_source_file = b.path("main.zig"),
1212 .optimize = optimize,
13 .target = b.host,
13 .target = b.graph.host,
1414 });
1515 _ = obj.getEmittedLlvmIr();
1616 _ = obj.getEmittedLlvmBc();
test/standalone/issue_12706/build.zig+1-1
......@@ -6,7 +6,7 @@ pub fn build(b: *std.Build) void {
66 b.default_step = test_step;
77
88 const optimize: std.builtin.OptimizeMode = .Debug;
9 const target = b.host;
9 const target = b.graph.host;
1010
1111 const exe = b.addExecutable(.{
1212 .name = "main",
test/standalone/issue_339/build.zig+1-1
......@@ -5,7 +5,7 @@ pub fn build(b: *std.Build) void {
55 b.default_step = test_step;
66
77 const optimize: std.builtin.OptimizeMode = .Debug;
8 const target = b.host;
8 const target = b.graph.host;
99
1010 const obj = b.addObject(.{
1111 .name = "test",
test/standalone/load_dynamic_library/build.zig+1-1
......@@ -6,7 +6,7 @@ pub fn build(b: *std.Build) void {
66 b.default_step = test_step;
77
88 const optimize: std.builtin.OptimizeMode = .Debug;
9 const target = b.host;
9 const target = b.graph.host;
1010
1111 if (builtin.os.tag == .wasi) return;
1212
test/standalone/mix_c_files/build.zig+1-1
......@@ -19,7 +19,7 @@ fn add(b: *std.Build, test_step: *std.Build.Step, optimize: std.builtin.Optimize
1919 const exe = b.addExecutable(.{
2020 .name = "test",
2121 .root_source_file = b.path("main.zig"),
22 .target = b.host,
22 .target = b.graph.host,
2323 .optimize = optimize,
2424 });
2525 exe.addCSourceFile(.{ .file = b.path("test.c"), .flags = &[_][]const u8{"-std=c11"} });
test/standalone/mix_o_files/build.zig+1-1
......@@ -5,7 +5,7 @@ pub fn build(b: *std.Build) void {
55 b.default_step = test_step;
66
77 const optimize: std.builtin.OptimizeMode = .Debug;
8 const target = b.host;
8 const target = b.graph.host;
99
1010 const obj = b.addObject(.{
1111 .name = "base64",
test/standalone/options/build.zig+1-1
......@@ -3,7 +3,7 @@ const std = @import("std");
33pub fn build(b: *std.Build) void {
44 const main = b.addTest(.{
55 .root_source_file = b.path("src/main.zig"),
6 .target = b.host,
6 .target = b.graph.host,
77 .optimize = .Debug,
88 });
99
test/standalone/pkg_import/build.zig+1-1
......@@ -10,7 +10,7 @@ pub fn build(b: *std.Build) void {
1010 .name = "test",
1111 .root_source_file = b.path("test.zig"),
1212 .optimize = optimize,
13 .target = b.host,
13 .target = b.graph.host,
1414 });
1515 exe.root_module.addAnonymousImport("my_pkg", .{ .root_source_file = b.path("pkg.zig") });
1616
test/standalone/self_exe_symlink/build.zig+1-1
......@@ -7,7 +7,7 @@ pub fn build(b: *std.Build) void {
77 b.default_step = test_step;
88
99 const optimize: std.builtin.OptimizeMode = .Debug;
10 const target = b.host;
10 const target = b.graph.host;
1111
1212 // The test requires getFdPath in order to to get the path of the
1313 // File returned by openSelfExe
test/standalone/shared_library/build.zig+1-1
......@@ -10,7 +10,7 @@ pub fn build(b: *std.Build) void {
1010 }
1111
1212 const optimize: std.builtin.OptimizeMode = .Debug;
13 const target = b.host;
13 const target = b.graph.host;
1414 const lib = b.addSharedLibrary(.{
1515 .name = "mathtest",
1616 .root_source_file = b.path("mathtest.zig"),
test/standalone/static_c_lib/build.zig+1-1
......@@ -9,7 +9,7 @@ pub fn build(b: *std.Build) void {
99 const foo = b.addStaticLibrary(.{
1010 .name = "foo",
1111 .optimize = optimize,
12 .target = b.host,
12 .target = b.graph.host,
1313 });
1414 foo.addCSourceFile(.{ .file = b.path("foo.c"), .flags = &[_][]const u8{} });
1515 foo.addIncludePath(b.path("."));
test/standalone/strip_empty_loop/build.zig+1-1
......@@ -5,7 +5,7 @@ pub fn build(b: *std.Build) void {
55 b.default_step = test_step;
66
77 const optimize = std.builtin.OptimizeMode.Debug;
8 const target = b.host;
8 const target = b.graph.host;
99
1010 const main = b.addExecutable(.{
1111 .name = "main",
test/standalone/windows_argv/build.zig+1-1
......@@ -35,7 +35,7 @@ pub fn build(b: *std.Build) !void {
3535 const fuzz = b.addExecutable(.{
3636 .name = "fuzz",
3737 .root_source_file = b.path("fuzz.zig"),
38 .target = b.host,
38 .target = b.graph.host,
3939 .optimize = optimize,
4040 });
4141
test/standalone/windows_bat_args/build.zig+1-1
......@@ -6,7 +6,7 @@ pub fn build(b: *std.Build) !void {
66 b.default_step = test_step;
77
88 const optimize: std.builtin.OptimizeMode = .Debug;
9 const target = b.host;
9 const target = b.graph.host;
1010
1111 if (builtin.os.tag != .windows) return;
1212
test/standalone/windows_resources/build.zig+2-2
......@@ -12,10 +12,10 @@ pub fn build(b: *std.Build) void {
1212
1313 const generated_h_step = b.addWriteFile("generated.h", "#define GENERATED_DEFINE \"foo\"");
1414
15 add(b, b.host, .any, test_step, generated_h_step);
15 add(b, b.graph.host, .any, test_step, generated_h_step);
1616 add(b, target, .any, test_step, generated_h_step);
1717
18 add(b, b.host, .gnu, test_step, generated_h_step);
18 add(b, b.graph.host, .gnu, test_step, generated_h_step);
1919 add(b, target, .gnu, test_step, generated_h_step);
2020}
2121
test/standalone/windows_spawn/build.zig+1-1
......@@ -6,7 +6,7 @@ pub fn build(b: *std.Build) void {
66 b.default_step = test_step;
77
88 const optimize: std.builtin.OptimizeMode = .Debug;
9 const target = b.host;
9 const target = b.graph.host;
1010
1111 if (builtin.os.tag != .windows) return;
1212
test/tests.zig+1-1
......@@ -658,7 +658,7 @@ pub fn addStackTraceTests(
658658 const check_exe = b.addExecutable(.{
659659 .name = "check-stack-trace",
660660 .root_source_file = b.path("test/src/check-stack-trace.zig"),
661 .target = b.host,
661 .target = b.graph.host,
662662 .optimize = .Debug,
663663 });
664664