[clang] [clang][PS5] Clang driver PS5 - pass the target CPU to lld. (PR #202924)

Konstantin Belochapka via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 10 23:06:46 PDT 2026


================
@@ -178,6 +179,9 @@ void tools::PS4cpu::Linker::ConstructJob(Compilation &C, const JobAction &JA,
   if (StringRef Threads = getLTOParallelism(Args, D); !Threads.empty())
     AddLTOFlag(Twine("-threads=") + Threads);
 
+  std::string CPU = tools::x86::getX86TargetCPU(D, Args, TC.getTriple());
+  AddLTOFlag(Twine("mcpu=" + CPU));
+
----------------
kbelochapka wrote:

Corrected merge mistake.

https://github.com/llvm/llvm-project/pull/202924


More information about the cfe-commits mailing list