We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 749c3f5 commit 0aadfc9Copy full SHA for 0aadfc9
1 file changed
src/main.rs
@@ -56,11 +56,18 @@ fn main() -> Result<()> {
56
.find(|arg| arg.starts_with("--profile="))
57
.map(|arg| arg.split_at(10).1.to_string())
58
.unwrap_or_else(|| "release".into());
59
- std::env::args()
+ let profile = std::env::args()
60
.skip(2)
61
.find(|arg| arg.starts_with("--target="))
62
.map(|arg| format!("{}/{}", arg.split_at(9).1, profile))
63
- .unwrap_or_else(|| profile)
+ .unwrap_or_else(|| profile);
64
+
65
+ // TODO: in-depth metadata parsing
66
+ if profile == "dev" {
67
+ "debug".to_string()
68
+ } else {
69
+ profile
70
+ }
71
};
72
let link_deps;
73
let mut link_exclude_list = Vec::with_capacity(0);
0 commit comments