| ... | @@ -360,7 +360,10 @@ const Eval = struct { | ... | @@ -360,7 +360,10 @@ const Eval = struct { |
| 360 | | 360 | |
| 361 | const bin_name = try std.zig.EmitArtifact.bin.cacheName(arena, .{ | 361 | const bin_name = try std.zig.EmitArtifact.bin.cacheName(arena, .{ |
| 362 | .root_name = "root", // corresponds to the module name "root" | 362 | .root_name = "root", // corresponds to the module name "root" |
| 363 | .target = &eval.target, | 363 | .cpu_arch = eval.target.cpu.arch, |
| | 364 | .os_tag = eval.target.os.tag, |
| | 365 | .ofmt = eval.target.ofmt, |
| | 366 | .abi = eval.target.abi, |
| 364 | .output_mode = .Exe, | 367 | .output_mode = .Exe, |
| 365 | }); | 368 | }); |
| 366 | const bin_path = try Dir.path.join(arena, &.{ result_dir, bin_name }); | 369 | const bin_path = try Dir.path.join(arena, &.{ result_dir, bin_name }); |
| ... | @@ -487,9 +490,12 @@ const Eval = struct { | ... | @@ -487,9 +490,12 @@ const Eval = struct { |
| 487 | var argv_buf: [2][]const u8 = undefined; | 490 | var argv_buf: [2][]const u8 = undefined; |
| 488 | const argv: []const []const u8, const is_foreign: bool = sw: switch (std.zig.system.getExternalExecutor( | 491 | const argv: []const []const u8, const is_foreign: bool = sw: switch (std.zig.system.getExternalExecutor( |
| 489 | io, | 492 | io, |
| 490 | &eval.host, | | |
| 491 | &eval.target, | 493 | &eval.target, |
| 492 | .{ .link_libc = eval.backend == .cbe }, | 494 | .{ |
| | 495 | .link_libc = eval.backend == .cbe, |
| | 496 | .host_cpu_arch = eval.host.cpu.arch, |
| | 497 | .host_os_tag = eval.host.os.tag, |
| | 498 | }, |
| 493 | )) { | 499 | )) { |
| 494 | .bad_dl, .bad_os_or_cpu => { | 500 | .bad_dl, .bad_os_or_cpu => { |
| 495 | // This binary cannot be executed on this host. | 501 | // This binary cannot be executed on this host. |