debugger/lldb: Remove xcrun-based lldb-dap binary lookup (#27405)
Closes #ISSUE /cc @RemcoSmitsDev Release Notes: - N/A
This commit is contained in:
parent
03102b4d7e
commit
3205ae3884
1 changed files with 0 additions and 9 deletions
|
@ -37,15 +37,6 @@ impl DebugAdapter for LldbDebugAdapter {
|
|||
) -> Result<DebugAdapterBinary> {
|
||||
let lldb_dap_path = if let Some(user_installed_path) = user_installed_path {
|
||||
user_installed_path.to_string_lossy().into()
|
||||
} else if cfg!(target_os = "macos") {
|
||||
util::command::new_smol_command("xcrun")
|
||||
.args(&["-f", "lldb-dap"])
|
||||
.output()
|
||||
.await
|
||||
.ok()
|
||||
.and_then(|output| String::from_utf8(output.stdout).ok())
|
||||
.map(|path| path.trim().to_string())
|
||||
.ok_or(anyhow!("Failed to find lldb-dap in user's path"))?
|
||||
} else {
|
||||
delegate
|
||||
.which(OsStr::new("lldb-dap"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue