Nvptx: Use llbc as default linker by kjetilkjeka · Pull Request #148499 · rust-lang/rust (original) (raw)
So, this tested before that LinkerFlavor::Ptx wasn't set by default on any other target than nvptx64.
Would it make sense to keep that property somewhat? Something like:
else {
check!(!matches!(self.linker_flavor, LinkerFlavor::Ptx), "linker_flavor ptc is not be used by default anywhere");
}