d-armel-fix-lldb
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Mon, 26 Jun 2023 21:16:27 +0000 (22:16 +0100)
committerJeremy Bícha <jbicha@ubuntu.com>
Mon, 26 Jun 2023 21:16:27 +0000 (22:16 +0100)
run panics if lldb is not installed and no output is produced..

Gbp-Pq: Name d-armel-fix-lldb.patch

src/bootstrap/test.rs

index ba6227c7cd10824bf0545a46453c64d9b1875d87..0208180c260625238e0096693c1c8469e14027a0 100644 (file)
@@ -1439,7 +1439,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);
             }