Skip to content

Commit

Permalink
fix: cargo uses debug folder for dev profile builds (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikarh authored Apr 10, 2024
1 parent 944718a commit fb260af
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/commands/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,12 @@ impl<'a> BuildContext<'a> {
.skip_while(|s| s.as_str() != "armv7-sony-vita-newlibeabihf")
.nth(1);

let profile = profile.map_or("dev", |p| p.as_str());
let mut profile = profile.map_or("dev", |p| p.as_str());

// Cargo uses "debug" folder for "dev" profile builds
if profile == "debug" {
profile = "dev";
}

if !art.meta.strip_symbols(profile) {
info!("{}", "Skipping additional elf strip".yellow());
Expand Down

0 comments on commit fb260af

Please sign in to comment.