debugger/lldb: Remove xcrun-based lldb-dap binary lookup (#27405)

Closes #ISSUE
/cc @RemcoSmitsDev 

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2025-03-25 01:21:09 +01:00 committed by GitHub
parent 03102b4d7e
commit 3205ae3884
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"))