diff options
| author | Haidong Zhang <zhanghaidong@uniontech.com> | 2025-09-09 18:10:24 +0800 |
|---|---|---|
| committer | Haidong Zhang <zhanghaidong@uniontech.com> | 2025-09-16 17:53:29 +0800 |
| commit | 929c9335ddcaf8e59f5b56c986fd58a3310fdac0 (patch) | |
| tree | b7c6bf83cb93d47d86da9ac4e4c4eccf4479d0cc /bootstrap.example.toml | |
| parent | 52618eb338609df44978b0ca4451ab7941fd1c7a (diff) | |
| download | rust-929c9335ddcaf8e59f5b56c986fd58a3310fdac0.tar.gz rust-929c9335ddcaf8e59f5b56c986fd58a3310fdac0.zip | |
Add parallel-frontend-threads to bootstrap.toml and enable multi-threaded parallel compilation
Diffstat (limited to 'bootstrap.example.toml')
| -rw-r--r-- | bootstrap.example.toml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bootstrap.example.toml b/bootstrap.example.toml index eac93957797..51529751dd5 100644 --- a/bootstrap.example.toml +++ b/bootstrap.example.toml @@ -859,6 +859,14 @@ # Trigger a `DebugBreak` after an internal compiler error during bootstrap on Windows #rust.break-on-ice = true +# Set the number of threads for the compiler frontend used during compilation of Rust code (passed to `-Zthreads`). +# The valid options are: +# 0 - Set the number of threads according to the detected number of threads of the host system +# 1 - Use a single thread for compilation of Rust code (the default) +# N - Number of threads used for compilation of Rust code +# +#rust.parallel-frontend-threads = 1 + # ============================================================================= # Distribution options # |
