================ @@ -40,6 +41,7 @@ using namespace llvm; namespace lld::wasm { static std::unique_ptr<lto::LTO> createLTO() { lto::Config c; + c.EmbedCmdArgs = commonContext().cmdArgs; ---------------- sbc100 wrote:
How about adding a helper like the existing ones `CommonLinkerContext.h`: ``` inline llvm::StringSaver &saver() { return context().saver; } ``` This means that the current linker code just calls `saver()` whenever it needs it. 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