Skip to content

Commit b46d089

Browse files
committed
Fix issue with dry run
1 parent 31c3983 commit b46d089

File tree

1 file changed

+11
-6
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+11
-6
lines changed

src/bootstrap/src/core/build_steps/test.rs

+11-6
Original file line numberDiff line numberDiff line change
@@ -1809,12 +1809,17 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
18091809
.stdout_if_ok();
18101810
if let Some(ref vers) = lldb_version {
18111811
cmd.arg("--lldb-version").arg(vers);
1812-
let lldb_python_dir = builder
1813-
.run(BootstrapCommand::new(&lldb_exe).allow_failure().capture_stdout().arg("-P"))
1814-
.stdout_if_ok()
1815-
.map(|p| p.lines().next().expect("lldb Python dir not found").to_string());
1816-
if let Some(ref dir) = lldb_python_dir {
1817-
cmd.arg("--lldb-python-dir").arg(dir);
1812+
1813+
if !builder.config.dry_run() {
1814+
let lldb_python_dir = builder
1815+
.run(
1816+
BootstrapCommand::new(&lldb_exe).allow_failure().capture_stdout().arg("-P"),
1817+
)
1818+
.stdout_if_ok()
1819+
.map(|p| p.lines().next().expect("lldb Python dir not found").to_string());
1820+
if let Some(ref dir) = lldb_python_dir {
1821+
cmd.arg("--lldb-python-dir").arg(dir);
1822+
}
18181823
}
18191824
}
18201825

0 commit comments

Comments
 (0)