Skip to content
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

--emit=ir is listed as valid choice in manual, but rustc does not accept it anymore #20111

Closed
nagisa opened this issue Dec 21, 2014 · 1 comment · Fixed by #20129
Closed

--emit=ir is listed as valid choice in manual, but rustc does not accept it anymore #20111

nagisa opened this issue Dec 21, 2014 · 1 comment · Fixed by #20129

Comments

@nagisa
Copy link
Member

nagisa commented Dec 21, 2014

$ man rustc | grep -- --emit | head -n1
       --emit=[asm,ir,bc,obj,link]
$ rustc src/lib.rs --crate-type=rlib --emit=ir
error: unknown emission type: `ir`
$ rustc --version
rustc 0.13.0-nightly (cc19e3380 2014-12-20 20:00:36 +0000)

The ir part in the manual should be changed to llvm-ir.

@nagisa
Copy link
Member Author

nagisa commented Dec 21, 2014

Most likely #19900.

nagisa added a commit to nagisa/rust that referenced this issue Dec 22, 2014
This pull request updates the rustc manual page to represent post-rust-lang#19900
state of rustc options better.

A bit unrelatedly, --help output is changed to fix some issues too:
  * -g and -O descriptions were changed from deprected flags to the new
    codegen flags.
  * dep-info value was moved from crate-type to emit flag.

Fixes rust-lang#20111
Fixes rust-lang#20131
alexcrichton added a commit to alexcrichton/rust that referenced this issue Dec 22, 2014
This pull request updates the rustc manual page to represent current state of rustc option handling better. Moved the apparently deprecated options (rust-lang#19900) to their own section and added all the new codegen options.

A bit unrelatedly, I also updated description of `-O` and `-g` flags to point to the new codegen options rather than old, deprecated ones.

Fixes rust-lang#20111.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant