================
@@ -455,6 +455,21 @@ void tools::gnutools::Linker::ConstructJob(Compilation &C,
const JobAction &JA,
addLTOOptions(ToolChain, Args, CmdArgs, Output, Inputs,
D.getLTOMode() == LTOK_Thin);
+ // Forward the DTLTO options to the linker. We add these unconditionally,
+ // rather than in addLTOOptions() as it is the linker that decides whether to
----------------
teresajohnson wrote:
Why not be consistent with the other LTO options though, which are added in
addLTOOptions? The same argument could be made for those (and maybe they should
be sent unconditionally, but that seems like a separate discussion).
https://github.com/llvm/llvm-project/pull/147265
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits