================ @@ -40,6 +41,7 @@ using namespace llvm; namespace lld::wasm { static std::unique_ptr<lto::LTO> createLTO() { lto::Config c; + c.EmbedCmdArgs = commonContext().cmdArgs; ---------------- mrexodia wrote:
For most drivers (except ELF) I can access the specialized context directly. But when creating the LTO config this isn’t the case. I can add a helper function, but it only complicates the code in my opinion. Tomorrow I will take another look to see if I missed something. https://github.com/llvm/llvm-project/pull/79390 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits