diff --git a/lldb/source/Plugins/ExpressionParser/Swift/SwiftREPL.cpp b/lldb/source/Plugins/ExpressionParser/Swift/SwiftREPL.cpp index e3edf843033d1..e29aa1e9640e2 100644 --- a/lldb/source/Plugins/ExpressionParser/Swift/SwiftREPL.cpp +++ b/lldb/source/Plugins/ExpressionParser/Swift/SwiftREPL.cpp @@ -201,7 +201,7 @@ lldb::REPLSP SwiftREPL::CreateInstanceFromDebugger(Status &err, launch_info.SetExecutableFile(exe_module_sp->GetPlatformFileSpec(), true); } - launch_info.GetEnvironment() = target_sp->GetTargetEnvironment(); + launch_info.GetEnvironment() = target_sp->GetInheritedEnvironment(); debugger.SetAsyncExecution(false); err = target_sp->Launch(launch_info, nullptr); debugger.SetAsyncExecution(true);