(cargo: &'a Build, compiler: &'a CompilerOptions)
| 29 | |
| 30 | #[allow(unused_variables)] |
| 31 | pub(crate) fn build_profile<'a>(cargo: &'a Build, compiler: &'a CompilerOptions) -> &'a str { |
| 32 | match cargo.profile.as_deref() { |
| 33 | Some("dev" | "test") => "debug", |
| 34 | Some("release" | "bench") => "release", |
| 35 | Some(profile) => profile, |
| 36 | None if cargo.release => "release", |
| 37 | None => "debug", |
| 38 | } |
| 39 | } |