Now that there is a way to disable debuginfo for a build, we can go back to
passing it by default. Any bugs in debuginfo will get weeded out by specifying
`debug = false` in the profile.
cmd = cmd.arg("--opt-level").arg(profile.get_opt_level().to_string());
}
- // Right now -g is a little buggy, so we're not passing -g just yet
- // if profile.get_debug() {
- // into.push("-g".to_string());
- // }
-
- if !profile.get_debug() {
+ if profile.get_debug() {
+ cmd = cmd.arg("-g");
+ } else {
cmd = cmd.args(["--cfg", "ndebug"]);
}