Skip to content

Commit

Permalink
Force strip = false for the current profile
Browse files Browse the repository at this point in the history
  • Loading branch information
intelfx committed May 7, 2024
1 parent b8973c3 commit f88d302
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,10 @@ fn get_cargo_envs(args: &Args, target_triple: &str)
.to_ascii_uppercase()
.replace('-', "_");

// No matter which profile we are building for, never strip the binary
// because we need the symbols
list.push((format!("CARGO_PROFILE_{}_STRIP", profile), "false"));

// When targeting MSVC, symbols data will be stored in PDB files,
// so always generate debug info
if target_triple.contains("msvc") {
Expand Down

0 comments on commit f88d302

Please sign in to comment.