-
Notifications
You must be signed in to change notification settings - Fork 93
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
reference compiler-builtins by git source #322
reference compiler-builtins by git source #322
Conversation
3173418
to
967f020
Compare
I don't think it has been there before, rust-lang/rust#78209 shows it has been pulled in from crates.io for a long time already. But then why doesn't it pick up the version from https://crates.io/crates/compiler_builtins? The git reference will likely not match the exact version that this std should be built with. |
So the question is, in that default case where xargo adds a compiler_builtins dependency itself, which version should it add? Can we just set the version to |
I will do some more research, but this should be the right path. |
To be specific, what do you mean by "this"? IMO using a crates.io version is preferable over using the git version. |
I tested if the version is somehow related to the usage of not usage of the version declaration. When using Without the version and without the git repository the version is set to |
Should we read the version of the dependency by parsing the For my build it would be then: Since it is already copied over to the build directory, we would just have to parse it. |
Yeah, that is the latest version.
Isn't there an error in this case? When liballoc is being built, we pull in compiler_builtins via that, and the version is given by the Cargo.lock file shipped in rust-src. But I don't think we should get into the business of parsing the lockfile. Honestly I am not sure what people expect when giving no Xargo.toml; this case is not really well-defined... |
I made a mistake. I think using |
6b4101c
to
9a6369e
Compare
On my machine the build even passes with the |
…compiler_builtins is selected by Cargo.lock from the rust-src.
9a6369e
to
747dc36
Compare
This looks great, thanks :). bors r+ |
Build succeeded: |
Fixes #320, but I am not sure, what the previous behavior was!