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

Cross compile std #77

Closed
japaric opened this issue Oct 23, 2016 · 5 comments · Fixed by #103
Closed

Cross compile std #77

japaric opened this issue Oct 23, 2016 · 5 comments · Fixed by #103

Comments

@japaric
Copy link
Owner

japaric commented Oct 23, 2016

For starters, with a few restrictions

  • Xargo won't compile std for the host
  • No custom std source
  • The Cargo features of std can't be tweaked

These issues need to be addressed in rust-lang/rust:

But there are probably others. The easiest way to test this feature today is by compiling a binary Cargo project with the following Cargo.toml.

[dependencies]
std = "$(rustc --print sysroot)/lib/rustlib/src/rust/src/libstd"
@japaric
Copy link
Owner Author

japaric commented Oct 23, 2016

I would strongly suggest to people that want this feature to instead push for "std aware" Cargo (rust-lang/rfcs#1133) though. That's the proper solution.

@japaric
Copy link
Owner Author

japaric commented Dec 12, 2016

I think the only remaining blocker for this is rust-lang/rust#37975

@HybridEidolon
Copy link

Any way we can get rust-lang/rust#37975 retried on CI?

@japaric
Copy link
Owner Author

japaric commented Dec 19, 2016

@HybridEidolon You'll have to convince Alex 😄. It'd be best if someone with access to a mac tested the PR to verify if the issue is real.

@HybridEidolon
Copy link

The patch I put on my last comment of that issue makes the tests pass under makefile builds, which makes tests pass for mac.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants