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

Expose "debugging" flags like --explain and --emit #1204

Closed
huonw opened this issue Jan 21, 2015 · 1 comment
Closed

Expose "debugging" flags like --explain and --emit #1204

huonw opened this issue Jan 21, 2015 · 1 comment

Comments

@huonw
Copy link
Member

huonw commented Jan 21, 2015

rustc flags like the above don't fundamentally change the final output, so it shouldn't get in the way of the goal of reliable builds to expose them. The latter is very useful when writing a performance-oriented project where it might be required to dig into why some example is optimising as well as one hopes, e.g. cargo build --release --emit=asm,llvm-ir --example underperforming.

Currently, one has to invoke rustc by hand, passing in -L flags manually to get it link dependencies, it would be nice to be able to leverage cargo's knowledge to do it automatically.

@alexcrichton
Copy link
Member

Closing as a dupe of #544 and #595, I think we want to avoid many top-level flags in cargo build to the compiler (where to draw the line?) but one of those two issues would definitely help out with this.

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

No branches or pull requests

2 participants