[clang] [lld] [llvm] Integrated Distributed ThinLTO (DTLTO): Initial support (PR #126654)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 12 18:57:44 PST 2025
================
@@ -535,6 +535,25 @@ void tools::gnutools::Linker::ConstructJob(Compilation &C, const JobAction &JA,
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
+ // do LTO or not dependent upon whether there are any bitcode input files in
+ // the link.
+ if (Arg *A = Args.getLastArg(options::OPT_fthinlto_distributor_EQ)) {
+ A->claim();
----------------
bd1976bris wrote:
Nice. Thanks.
https://github.com/llvm/llvm-project/pull/126654
More information about the llvm-commits
mailing list