From fb260af3a4b62802062d811a5005715c3996f912 Mon Sep 17 00:00:00 2001 From: Nikolay Arhipov Date: Wed, 10 Apr 2024 23:39:14 +0300 Subject: [PATCH] fix: cargo uses debug folder for dev profile builds (#23) --- src/commands/build.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/commands/build.rs b/src/commands/build.rs index 156eabb..99b46b8 100644 --- a/src/commands/build.rs +++ b/src/commands/build.rs @@ -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());