-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Use the selected CC/CXX in crates that build with gcc-rs. #42206
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nikomatsakis (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
Thanks for the PR @bryant, we'll check in every now and again to make sure @alexcrichton or another reviewer gets to this soon! |
Thanks for the PR! These should already be set though for various scripts, but are they not working? |
They aren't. Without this patch, the librustc_llvm attempts to invoke cc
regardless of config.toml. There is no cc on my system, so the build simply
halts.
…On May 24, 2017 11:08 PM, "Alex Crichton" ***@***.***> wrote:
Thanks for the PR! These should already be set though
<https://github.com/rust-lang/rust/blob/5b13bff5203c1bdc6ac6dc87f69b5359a9503078/src/bootstrap/lib.rs#L470-L472>
for various scripts, but are they not working?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#42206 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAo8b3b7nHZATYPOAtANAo5JSRkTkyStks5r9PC5gaJpZM4NlwyU>
.
|
Can you gist the error message you're seeing? The build script is using the |
Hi @bryant, any news on the gist with the error? It'd be good to fix whatever you saw! |
I think I encountered this issue too. I rebuilt LLVM with clang instead of GCC (= |
Ah it looks like setting |
Sorry for not being clear initially. The rustc_llvm problem that prompted this patch was a link failure: cargo or rustc or whatever insists on invoking
Unless gcc-rs calls CXX to link, I'm not sure that that's the problem. I'll try again tonight with CXX added at that spot. |
@bryant did you manage to take another look at this? |
Ok I'm going to close this due to inactivity, but thanks regardless for the PR @bryant! Feel free to resubmit as a new PR! |
Set CXX_<target> in bootstrap I came across this trying to cross-compile rustc for Redox. It was also mentioned in a comment on rust-lang#42206, but doesn't seem to have been corrected.
Set CXX_<target> in bootstrap I came across this trying to cross-compile rustc for Redox. It was also mentioned in a comment on rust-lang#42206, but doesn't seem to have been corrected.
Such as
librustc_llvm
.