================
@@ -632,6 +632,8 @@ void amdgpu::Linker::ConstructJob(Compilation &C, const
JobAction &JA,
Args.MakeArgString("-plugin-opt=-mattr=" + llvm::join(Features, ",")));
}
+ getToolChain().addProfileRTLibs(Args, CmdArgs);
----------------
jhuber6 wrote:
That's reasonable, people may have been `-fprofile-generate` on the host and
just expected it to be ignored on the GPU. I'd argue that people should always
be specific with this stuff using `-Xarch_host`, but that might be too much to
ask. I could add a check for the library in there to suppress it for the GPU,
even though I'm normally against that kind of stuff I can see it surprising
people.
https://github.com/llvm/llvm-project/pull/185761
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits