Skip to content

Commit

Permalink
Separate entry for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirko-von-Leipzig committed Sep 16, 2024
1 parent 2679228 commit df6c23d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bin/node/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,8 @@ fn long_version() -> String {
features = "None";
}

let mut opt_level = env!("VERGEN_CARGO_OPT_LEVEL").to_owned();
let opt_level = env!("VERGEN_CARGO_OPT_LEVEL").to_owned();
let debug = env!("VERGEN_CARGO_DEBUG");
if debug == "true" {
opt_level = format!("{opt_level}-debug");
}

format!(
"{version}
Expand All @@ -159,6 +156,7 @@ rust version: {rust_version}
target arch: {target}
host arch: {host}
opt-level: {opt_level}
debug: {debug}
"
)
}

0 comments on commit df6c23d

Please sign in to comment.