-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Compiling rust from source uses all available threads #40366
Comments
Oh this happened due to the switch to a new build system on our end. The build system has a makefile but it's just a thin veneer over the actual build system, what we call rustbuild. The entry point of the build system, the |
Hi, Alex. Thanks for your quick reply. I expected that the number of requested threads could be parsed out of the environment variable
Yep, that works just fine for me. So I run |
The file https://static.rust-lang.org/dist/rustc-1.15.1-src.tar.gz doesn't contain |
Oh right sorry that was actually a bug in the 1.15.1 tarball :(. For now on 1.15 you can pass And yeah you'll still want to use |
Alternatively, instead of using |
I believe there's not a bug here; closing. |
When building
rust
from source it uses all available threads. How do I specify the number of threads?Building
rust
from source on CircleCI fails because it uses 32 threads and exceeds the available memory. I usemake -j12
but it uses 32 threads nonetheless.There are 32 concurrent processes of
cc1plus
in this dump fromtop
https://4264-56942570-gh.circle-artifacts.com/0/tmp/memory-usage.txtSee the log file https://circleci.com/gh/Linuxbrew/homebrew-core/4264
and the original issue https://github.com/Linuxbrew/homebrew-core/pull/1953
The text was updated successfully, but these errors were encountered: