================ @@ -634,7 +634,17 @@ void amdgpu::Linker::ConstructJob(Compilation &C, const JobAction &JA, C.getDriver().getLTOMode() == LTOK_Thin); else if (Args.hasArg(options::OPT_mcpu_EQ)) CmdArgs.push_back(Args.MakeArgString( - "-plugin-opt=mcpu=" + Args.getLastArgValue(options::OPT_mcpu_EQ))); + "-plugin-opt=mcpu=" + + getProcessorFromTargetID(getToolChain().getTriple(), + Args.getLastArgValue(options::OPT_mcpu_EQ)))); + + // Always pass the target-id features to the LTO job. + std::vector<StringRef> Features; + getAMDGPUTargetFeatures(C.getDriver(), getToolChain().getTriple(), Args, + Features); + if (!Features.empty()) ---------------- arsenm wrote:
Braces https://github.com/llvm/llvm-project/pull/101037 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits