Question: Change the rust tool-chain to the local one's for the build

I want to ask if i'm allowed to configure the rust build to use my installed nightly version of rustc to avoid
the burden job of downloading the beta one's.

I'm not sure what you're asking? Of course you're allowed to do whatever you want on your local install of Rust.

Do you build from Rust tarball or from git?
Bootstrap uses beta compiler. I guess nightly might not work because some nightly features
removed but bootstrap isn't updated.

I'm building from git.

I'm trying to tell ./x.py : Do not download the beta version of rustc, instead use my installed nightly version. if it is allowed; How?

It might be possible but I'm not quite sure.
If you are interest, take a look at https://github.com/rust-lang/rust/blob/master/src/stage0.txt
and https://github.com/rust-lang/rust/blob/1799d31847294d6e3816c17679247a5c206e809a/config.toml.example#L144-L150

Oh, it works. But I'm not sure what possible downsides it may have:

--- config.toml.example 2020-07-30 08:12:04.956182150 +0000
+++ config.toml 2020-07-30 12:27:19.816173242 +0000
@@ -143,11 +143,11 @@

 # Instead of downloading the src/stage0.txt version of Cargo specified, use
 # this Cargo binary instead to build all Rust code
-#cargo = "/path/to/bin/cargo"
+cargo = "../../../.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo"

 # Instead of downloading the src/stage0.txt version of the compiler
 # specified, use this rustc binary instead as the stage0 snapshot compiler.
-#rustc = "/path/to/bin/rustc"
+rustc = "../../../.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/rustc"

I think local-rebuild also needs to be set to true.

1 Like

Thanks this is what i'm looking for. :smiley:

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.