Skip to content

Commit

Permalink
Merge pull request #80 from cat-in-136/profile-dev-refer-to-debug
Browse files Browse the repository at this point in the history
target path for `--profile dev` refer to `target/debug/foobar`
  • Loading branch information
cat-in-136 authored May 27, 2023
2 parents aa3b4aa + 7e9c5c4 commit 0e2edfd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/config/file_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ impl FileInfo<'_, '_, '_, '_> {
parent: P,
idx: usize,
) -> Result<Vec<(PathBuf, String)>, ConfigError> {
let profile = build_target.profile.as_deref().unwrap_or("release");
let profile = match build_target.profile.as_deref() {
Some(v) if v == "dev" => "debug",
Some(v) => v,
None => "release",
};
let source = self
.source
.strip_prefix("target/release/")
Expand Down

0 comments on commit 0e2edfd

Please sign in to comment.