-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Enable building freestanding sysroot with cargo #31792
Conversation
r? @brson (rust_highfive has picked a reviewer for you, use r? to override) |
Are you aware of rust-lang/rfcs#1364? Over there, a different approach has been discussed. I'm not sure how much this PR and that issue overlap, because I am not sure what a "freestanding sysroot" is, can you elaborate on what one would use this for and why that's important? |
Thanks for the PR! I think that the |
c9de9e7
to
c13c51a
Compare
Ah also I don't think this PR will work because |
|
Sorry, but to clarify, this will not compile. Crates built with Cargo can only depend on other crates listed in Cargo.toml. If The business of selecting |
I moved that to libstd |
With these changes you can build a freestanding sysroot without using floating points using a Cargo.toml and copying the `deps` folder cargo outputs. ``` [package] name = "sysroot" version = "0.1.0" [lib] path = "lib.rs" crate-type = ["rlib"] [dependencies.core] path = "../vendor/rust/src/src/libcore" features = ["disable_float"] [dependencies] collections = { path = "../vendor/rust/src/src/libcollections" } ```
With these changes you can build a freestanding sysroot without using floating points using a Cargo.toml and copying the
deps
folder cargo outputs.