Skip to content

Cargo status line incorrectly says "+ debuginfo" #6948

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
brson opened this issue May 17, 2019 · 0 comments · Fixed by #6971
Closed

Cargo status line incorrectly says "+ debuginfo" #6948

brson opened this issue May 17, 2019 · 0 comments · Fixed by #6971
Labels
C-bug Category: bug

Comments

@brson
Copy link
Contributor

brson commented May 17, 2019

When debug=false it says

brian@DESKTOP-UCV672I:~/dbgtest$ cargo build --release
    Finished release [optimized] target(s) in 0.06s

When debug=0 it says

    Finished release [optimized + debuginfo] target(s) in 0.06s

My understanding is that "0" and "false" both mean "no debuginfo", but cargo claims otherwise. Cargo also passes the -Cdebuginfo=0 flag to rustc when debug=0 and does not when debug=false. For consistency, and as a matter of defensiveness it seems like it should pass the flag anyway.

@brson brson added the C-bug Category: bug label May 17, 2019
@brson brson changed the title Cargo status line incorrectly says "+optimized" Cargo status line incorrectly says "+ debuginfo" May 17, 2019
bors added a commit that referenced this issue May 20, 2019
Set `Finished` line correctly for debug=0.

Don't say `+ debuginfo` if `debug = 0`.

Fixes #6948
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
C-bug Category: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant