================ @@ -125,7 +126,9 @@ std::string sparc::getSparcTargetCPU(const Driver &D, const ArgList &Args, return std::string(CPUName); } - if (Triple.getArch() == llvm::Triple::sparc && Triple.isOSSolaris()) + Distro Dist(D.getVFS(), Triple); + if (Triple.getArch() == llvm::Triple::sparc && + (Triple.isOSSolaris() || Dist.IsDebian() || Dist.IsGentoo())) ---------------- rorth wrote:
Exactly: so far I've just included distros that I know for certain are SPARC V9 only. This can always be augmented if more come up, of course. https://github.com/llvm/llvm-project/pull/109278 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits