-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rustc should accept rustc -O -C opt-level=x #32352
Labels
A-frontend
Area: Compiler frontend (errors, parsing and HIR)
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
Comments
steveklabnik
added
A-frontend
Area: Compiler frontend (errors, parsing and HIR)
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
labels
Jul 25, 2016
Triage: no change |
This was referenced Apr 27, 2019
Merged
bors
added a commit
that referenced
this issue
May 3, 2019
Update getopts This is a prerequisite to fixing #32352. The rustbuild fix has been pulled out of #59440. r? @alexcrichton
Centril
added a commit
to Centril/rust
that referenced
this issue
May 3, 2019
…r=alexcrichton Stop `-O`/`-C opt-level` and `-g`/`-C debuginfo` conflicting Allow `-O` and `-C opt-level`, and `-g` and `-C debuginfo` to be specified simultaneously without conflict. In such cases, the rightmost provided option is chosen. Fixes rust-lang#7493. Fixes rust-lang#32352. ~Blocked on rust-lang/getopts#79 r? @alexcrichton
bors
added a commit
that referenced
this issue
May 4, 2019
Stop `-O`/`-C opt-level` and `-g`/`-C debuginfo` conflicting Allow `-O` and `-C opt-level`, and `-g` and `-C debuginfo` to be specified simultaneously without conflict. In such cases, the rightmost provided option is chosen. Fixes #7493. Fixes #32352. ~Blocked on rust-lang/getopts#79 r? @alexcrichton
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
May 5, 2019
…r=alexcrichton Stop `-O`/`-C opt-level` and `-g`/`-C debuginfo` conflicting Allow `-O` and `-C opt-level`, and `-g` and `-C debuginfo` to be specified simultaneously without conflict. In such cases, the rightmost provided option is chosen. Fixes rust-lang#7493. Fixes rust-lang#32352. ~Blocked on rust-lang/getopts#79 r? @alexcrichton
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-frontend
Area: Compiler frontend (errors, parsing and HIR)
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
rustc -O -O
is ok just likerustc -C opt-level=1 -C opt-level=2
.-O
is documented to be the same as-C opt-level=2
, so there should be no conflict, just have the last argument take precedent.-g
vs-C debuginfo=2
behave the same way.The text was updated successfully, but these errors were encountered: