| ... | @@ -3169,9 +3169,11 @@ fn buildOutputType( | ... | @@ -3169,9 +3169,11 @@ fn buildOutputType( |
| 3169 | | 3169 | |
| 3170 | const target = main_mod.resolved_target.result; | 3170 | const target = main_mod.resolved_target.result; |
| 3171 | | 3171 | |
| 3172 | if (target.cpu.arch.isNvptx()) { | 3172 | if (target.cpu.arch == .arc or target.cpu.arch.isNvptx()) { |
| 3173 | if (emit_bin != .no and create_module.resolved_options.use_llvm) { | 3173 | if (emit_bin != .no and create_module.resolved_options.use_llvm) { |
| 3174 | fatal("cannot emit PTX binary with the LLVM backend; only '-femit-asm' is supported", .{}); | 3174 | fatal("cannot emit {s} binary with the LLVM backend; only '-femit-asm' is supported", .{ |
| | 3175 | @tagName(target.cpu.arch), |
| | 3176 | }); |
| 3175 | } | 3177 | } |
| 3176 | } | 3178 | } |
| 3177 | | 3179 | |