Skip to content

Commit

Permalink
Enable verbose panics
Browse files Browse the repository at this point in the history
  • Loading branch information
Kobzol committed Jul 25, 2024
1 parent 17199d0 commit 5980328
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/bootstrap/src/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,14 @@ use bootstrap::{
find_recent_config_change_ids, human_readable_changes, t, Build, Config, Subcommand,
CONFIG_CHANGE_HISTORY,
};
use build_helper::ci::CiEnv;

fn main() {
// Enable verbose panics on CI
if CiEnv::is_ci() {
std::env::set_var("RUST_BACKTRACE", "1");
}

let args = env::args().skip(1).collect::<Vec<_>>();
let config = Config::parse(&args);

Expand Down

0 comments on commit 5980328

Please sign in to comment.