[Lldb-commits] [lldb] [lldb] Inherit Host::GetEnvironment() when launching a wasm runtime (PR #190476)

Maarten Steevens via lldb-commits lldb-commits at lists.llvm.org
Sat Apr 4 11:14:24 PDT 2026


https://github.com/MaartenS11 updated https://github.com/llvm/llvm-project/pull/190476

>From 247c4bf1e18480e501e9ce7f88029ade2a1b5d1e Mon Sep 17 00:00:00 2001
From: MaartenS11 <maarten.steevens at gmail.com>
Date: Sat, 4 Apr 2026 19:52:07 +0200
Subject: [PATCH] [lldb] Inherit Host::GetEnvironment() when launching a wasm
 runtime

---
 lldb/source/Plugins/Platform/WebAssembly/PlatformWasm.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lldb/source/Plugins/Platform/WebAssembly/PlatformWasm.cpp b/lldb/source/Plugins/Platform/WebAssembly/PlatformWasm.cpp
index fb52e48850cb9..a7c60aec98670 100644
--- a/lldb/source/Plugins/Platform/WebAssembly/PlatformWasm.cpp
+++ b/lldb/source/Plugins/Platform/WebAssembly/PlatformWasm.cpp
@@ -176,6 +176,7 @@ lldb::ProcessSP PlatformWasm::DebugProcess(ProcessLaunchInfo &launch_info,
   launch_info.SetArguments(args, true);
   launch_info.SetLaunchInSeparateProcessGroup(true);
   launch_info.GetFlags().Clear(eLaunchFlagDebug);
+  launch_info.GetEnvironment() = Host::GetEnvironment();
 
   auto exit_code = std::make_shared<std::optional<int>>();
   launch_info.SetMonitorProcessCallback(



More information about the lldb-commits mailing list