[lld] [clang] [llvm] Embed the command line arguments during LTO (PR #79390)

Duncan Ogilvie via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 24 15:33:32 PST 2024


================
@@ -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:

Thanks for the comment! I don't think it makes a difference, except that `context()` needs a `T` (which derives from `CommonLinkerContext` regardless) and this would result in more typing to get the exact same instance.

https://github.com/llvm/llvm-project/pull/79390


More information about the cfe-commits mailing list