Skip to content

Commit 5980328

Browse files
committed
Enable verbose panics
1 parent 17199d0 commit 5980328

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/bootstrap/src/bin/main.rs

+6
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,14 @@ use bootstrap::{
1818
find_recent_config_change_ids, human_readable_changes, t, Build, Config, Subcommand,
1919
CONFIG_CHANGE_HISTORY,
2020
};
21+
use build_helper::ci::CiEnv;
2122

2223
fn main() {
24+
// Enable verbose panics on CI
25+
if CiEnv::is_ci() {
26+
std::env::set_var("RUST_BACKTRACE", "1");
27+
}
28+
2329
let args = env::args().skip(1).collect::<Vec<_>>();
2430
let config = Config::parse(&args);
2531

0 commit comments

Comments
 (0)