================
@@ -146,6 +146,40 @@ lldb::ProcessSP PlatformWasm::Attach(ProcessAttachInfo
&attach_info,
return nullptr;
}
+Args PlatformWasm::MakeRuntimeCommand(llvm::StringRef runtime_path,
+ const Args &runtime_args,
+ llvm::StringRef port_arg, uint16_t port,
+ llvm::StringRef env_arg,
+ const Environment &env,
+ llvm::StringRef module_path,
+ const Args &inferior_args) {
+ Args args({runtime_path});
+ args.AppendArguments(runtime_args);
+ args.AppendArgument(llvm::formatv("{0}{1}", port_arg, port).str());
+
+ // Forward the inferior's environment into the WASI runtime. How arguments
are
+ // passed is configurable. When not configured, no environment is passed.
----------------
bulbazord wrote:
This comment is superfluous.
https://github.com/llvm/llvm-project/pull/220700
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits