| ... | @@ -311,7 +311,9 @@ fn printOutput( | ... | @@ -311,7 +311,9 @@ fn printOutput( |
| 311 | .arch_os_abi = triple, | 311 | .arch_os_abi = triple, |
| 312 | }); | 312 | }); |
| 313 | const target = try std.zig.system.resolveTargetQuery(io, target_query); | 313 | const target = try std.zig.system.resolveTargetQuery(io, target_query); |
| 314 | switch (getExternalExecutor(io, &host, &target, .{ | 314 | switch (getExternalExecutor(io, &target, .{ |
| | 315 | .host_cpu_arch = host.cpu.arch, |
| | 316 | .host_os_tag = host.os.tag, |
| 315 | .link_libc = code.link_libc, | 317 | .link_libc = code.link_libc, |
| 316 | })) { | 318 | })) { |
| 317 | .native => {}, | 319 | .native => {}, |
| ... | @@ -526,7 +528,10 @@ fn printOutput( | ... | @@ -526,7 +528,10 @@ fn printOutput( |
| 526 | .lib => { | 528 | .lib => { |
| 527 | const bin_basename = try std.zig.binNameAlloc(arena, .{ | 529 | const bin_basename = try std.zig.binNameAlloc(arena, .{ |
| 528 | .root_name = code_name, | 530 | .root_name = code_name, |
| 529 | .target = &builtin.target, | 531 | .cpu_arch = builtin.target.cpu.arch, |
| | 532 | .os_tag = builtin.target.os.tag, |
| | 533 | .ofmt = builtin.target.ofmt, |
| | 534 | .abi = builtin.target.abi, |
| 530 | .output_mode = .Lib, | 535 | .output_mode = .Lib, |
| 531 | }); | 536 | }); |
| 532 | | 537 | |