Add set_backtrace_level helper function to run_make_support

This commit is contained in:
Oneirical 2024-06-09 14:24:36 -04:00
parent f88c647cda
commit 8a6bc13cfe
2 changed files with 30 additions and 13 deletions

View file

@ -100,6 +100,12 @@ impl Rustc {
self
}
//Adjust the backtrace level, displaying more detailed information at higher levels.
pub fn set_backtrace_level<R: AsRef<OsStr>>(&mut self, level: R) -> &mut Self {
self.cmd.env("RUST_BACKTRACE", level);
self
}
/// Specify path to the output file. Equivalent to `-o`` in rustc.
pub fn output<P: AsRef<Path>>(&mut self, path: P) -> &mut Self {
self.cmd.arg("-o");