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

Prevent RUSTFLAGS from breaking probing #4807

Closed
wants to merge 1 commit into from

Conversation

kornelski
Copy link
Contributor

Fixes #4761, enables support for RUSTFLAGS="--print=native-static-libs" cargo build

@rust-highfive
Copy link

r? @matklad

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member

Thanks for the PR! Can you be sure to add a test as well?

I'm also somewhat wary about doing this, in general Cargo tries to interpret nothing going down to rustc to give it as much freedom as possible. For example this doesn't correctly handle the case of --print foo. Is there perhaps another way we can fix this without interpreting flags?

@kornelski kornelski closed this Dec 14, 2017
steveklabnik added a commit to steveklabnik/rust that referenced this pull request Dec 15, 2017
Help Cargo tolerate RUSTFLAGS="--print=native-static-libs"

Alternative to rust-lang/cargo#4807

Having this "error" message was a mistake, as it's firing at exactly wrong time when Cargo is trying to read the output of other print commands.
@kornelski kornelski deleted the print branch January 20, 2018 17:58
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 this pull request may close these issues.

4 participants