| ... | @@ -3021,6 +3021,17 @@ fn buildOutputType( | ... | @@ -3021,6 +3021,17 @@ fn buildOutputType( |
| 3021 | try test_exec_args.append(self_exe_path); | 3021 | try test_exec_args.append(self_exe_path); |
| 3022 | try test_exec_args.append("run"); | 3022 | try test_exec_args.append("run"); |
| 3023 | if (link_libc) try test_exec_args.append("-lc"); | 3023 | if (link_libc) try test_exec_args.append("-lc"); |
| | 3024 | if (!mem.eql(u8, target_arch_os_abi, "native")) { |
| | 3025 | try test_exec_args.append("-target"); |
| | 3026 | try test_exec_args.append(target_arch_os_abi); |
| | 3027 | } |
| | 3028 | if (target_mcpu) |mcpu| { |
| | 3029 | try test_exec_args.append(try std.fmt.allocPrint(arena, "-mcpu={s}", .{mcpu})); |
| | 3030 | } |
| | 3031 | if (target_dynamic_linker) |dl| { |
| | 3032 | try test_exec_args.append("--dynamic-linker"); |
| | 3033 | try test_exec_args.append(dl); |
| | 3034 | } |
| 3024 | try test_exec_args.append(c_code_path); | 3035 | try test_exec_args.append(c_code_path); |
| 3025 | } | 3036 | } |
| 3026 | | 3037 | |