[lld] [lld][WebAssembly] Set the target-cpu in LTO config (PR #140010)

Sam Clegg via llvm-commits llvm-commits at lists.llvm.org
Thu May 15 09:14:08 PDT 2025


================
@@ -59,6 +59,7 @@ static lto::Config createConfig() {
   c.DisableVerify = ctx.arg.disableVerify;
   c.DiagHandler = diagnosticHandler;
   c.OptLevel = ctx.arg.ltoo;
+  c.CPU = getCPUStr();
----------------
sbc100 wrote:

I tried removing this line from the ELF linker and all the tests still passed.. so maybe testing is not easy?

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


More information about the llvm-commits mailing list