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

Duncan Ogilvie via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 25 03:53:44 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:

I changed all the `commonContext()` to `context()` (or the `ctx` variable directly where possible). Feel free to reopen the discussion if you think it needs another revision.

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


More information about the llvm-commits mailing list