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

Passing rustc compilation flags as arguments to the cargo build command line. #921

Closed
ptal opened this issue Nov 20, 2014 · 3 comments
Closed

Comments

@ptal
Copy link

ptal commented Nov 20, 2014

A typical use-case is with the --explain XXX compilation flags. Currently we need to use cargo build -v, copy the compilation line and add this flag by hand.

This could be solved by adding an option, let's say, --rustc-flags to the cargo build sub-command.

@steveklabnik
Copy link
Member

This has been suggested and rejected numerous times https://github.com/rust-lang/cargo/search?q=compiler+flags&type=Issues&utf8=%E2%9C%93

@alexcrichton
Copy link
Member

Yes this is a dupe of #544 and #595

@ptal
Copy link
Author

ptal commented Nov 21, 2014

OK. Suppose that --explain E0001 gives contextual information about why a pattern is unreachable, what would be the preferred way to add it to cargo?

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

3 participants