From: Debian Rust Maintainers Date: Fri, 17 May 2024 06:38:11 +0000 (+0200) Subject: d-armel-fix-lldb X-Git-Tag: archive/raspbian/1.72.1+dfsg1-1+rpi1~1^2~13 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=82b66fefb9fdf39262c25ecc3180ea10314b1c2a;p=rustc.git d-armel-fix-lldb run panics if lldb is not installed and no output is produced.. Gbp-Pq: Name d-armel-fix-lldb.patch --- diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index 9b37d5de82..64fb5feffe 100644 --- a/src/bootstrap/test.rs +++ b/src/bootstrap/test.rs @@ -1516,7 +1516,11 @@ note: if you're sure you want to do this, please open an issue as to why. In the .ok(); if let Some(ref vers) = lldb_version { cmd.arg("--lldb-version").arg(vers); - let lldb_python_dir = run(Command::new(lldb_exe).arg("-P")).ok(); + let lldb_python_dir = Command::new(lldb_exe) + .arg("-P") + .output() + .map(|output| String::from_utf8_lossy(&output.stdout).to_string()) + .ok(); if let Some(ref dir) = lldb_python_dir { cmd.arg("--lldb-python-dir").arg(dir); }