[clang] [lld] [llvm] Support -fpass-plugin + -fthinlto-index together (PR #183525)
Alexis Engelke via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 3 00:02:39 PST 2026
================
@@ -50,7 +51,12 @@ struct Config {
TargetOptions Options;
std::vector<std::string> MAttrs;
std::vector<std::string> MllvmArgs;
- std::vector<std::string> PassPlugins;
+ // LTO will register both lists of plugins, but
+ // if an LTO client has already loaded a set of plugins,
+ // they should register them via LoadedPassPlugins.
+ // This is currently used by distributed thin-lto.
+ std::vector<std::string> PassPluginFilenames;
----------------
aengelke wrote:
Do you think it is possible to adjust the other users of this to load the pass plugins themselves? Then we'd again only have a single way to specify pass plugins here.
https://github.com/llvm/llvm-project/pull/183525
More information about the llvm-commits
mailing list