Skip to content

Commit 0aadfc9

Browse files
committed
Fix builds using the dev profile
1 parent 749c3f5 commit 0aadfc9

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

src/main.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,18 @@ fn main() -> Result<()> {
5656
.find(|arg| arg.starts_with("--profile="))
5757
.map(|arg| arg.split_at(10).1.to_string())
5858
.unwrap_or_else(|| "release".into());
59-
std::env::args()
59+
let profile = std::env::args()
6060
.skip(2)
6161
.find(|arg| arg.starts_with("--target="))
6262
.map(|arg| format!("{}/{}", arg.split_at(9).1, profile))
63-
.unwrap_or_else(|| profile)
63+
.unwrap_or_else(|| profile);
64+
65+
// TODO: in-depth metadata parsing
66+
if profile == "dev" {
67+
"debug".to_string()
68+
} else {
69+
profile
70+
}
6471
};
6572
let link_deps;
6673
let mut link_exclude_list = Vec::with_capacity(0);

0 commit comments

Comments
 (0)