Add set_backtrace_level helper function to run_make_support
This commit is contained in:
parent
f88c647cda
commit
8a6bc13cfe
2 changed files with 30 additions and 13 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue