We wanted to make use of parallel front-end compiler mentioned in Faster compilation with the parallel front-end in nightly | Rust Blog while building the rust compiler. As I understood currently the parallel front-end compiler can be used only with Cargo to build rust applications. But I tried to extend the usage to build rust compiler itself by doing below -
Cloned rust from git clone GitHub - rust-lang/rust: Empowering everyone to build reliable and efficient software. Added the below config in config.toml as given in doc,
[build]
rustflags = ["-Z", "threads=8"]
and gave a build with x.py build
command and that shows below error.
Building bootstrap
Finished dev [unoptimized] target(s) in 0.57s
failed to parse TOML configuration 'config.toml': unknown field `rustflags`, expected one of `build`, `host`, `target`, `build-dir`, `cargo`, `rustc`, `rustfmt`, `docs`, `compiler-docs`, `library-docs-private-items`, `docs-minification`, `submodules`, `gdb`, `nodejs`, `npm`, `python`, `reuse`, `locked-deps`, `vendor`, `full-bootstrap`, `extended`, `tools`, `verbose`, `sanitizers`, `profiler`, `cargo-native-static`, `low-priority`, `configure-args`, `local-rebuild`, `print-step-timings`, `print-step-rusage`, `check-stage`, `doc-stage`, `build-stage`, `test-stage`, `install-stage`, `dist-stage`, `bench-stage`, `patch-binaries-for-nix`, `metrics`, `android-ndk` for key `build`
Build completed unsuccessfully in 0:00:00
Is there any way that we can make use of nightly compiler & Cargo to build the rust compiler?