mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
Auto merge of #78667 - pietroalbini:lldb-unbuffered, r=Mark-Simulacrum
Try running lldb_batchmode.py with PYTHONUNBUFFERED When reporting fatal errors, LLVM calls abort() to exit the program. There is a chance that might interfere with Python printing stuff to stdout, as by default it relies on buffering to increase performance. This commit tries to disable Python buffering, to hopefully get useful logs while debugging #78665.
This commit is contained in:
commit
499ebcfdf3
@ -1166,6 +1166,7 @@ impl<'test> TestCx<'test> {
|
||||
.arg(&lldb_script_path)
|
||||
.arg(test_executable)
|
||||
.arg(debugger_script)
|
||||
.env("PYTHONUNBUFFERED", "1") // Help debugging #78665
|
||||
.env("PYTHONPATH", self.config.lldb_python_dir.as_ref().unwrap()),
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user