Commit 386b869ec4
Changed files (1)
src
src/main.zig
@@ -3169,9 +3169,11 @@ fn buildOutputType(
const target = main_mod.resolved_target.result;
- if (target.cpu.arch.isNvptx()) {
+ if (target.cpu.arch == .arc or target.cpu.arch.isNvptx()) {
if (emit_bin != .no and create_module.resolved_options.use_llvm) {
- fatal("cannot emit PTX binary with the LLVM backend; only '-femit-asm' is supported", .{});
+ fatal("cannot emit {s} binary with the LLVM backend; only '-femit-asm' is supported", .{
+ @tagName(target.cpu.arch),
+ });
}
}