-
Notifications
You must be signed in to change notification settings - Fork 13.4k
rustbuild: Don't pass -j
if called by make
#44607
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
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
src/bootstrap/builder.rs
Outdated
.arg("--target").arg(target); | ||
|
||
// If we were invoked from `make` then that's already got a jobserver | ||
// set up for us so no need to tell Cargo about jobs all over again. | ||
if env::var("MAKEFLAGS").is_err() && env::var("MFLAGS").is_err() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var_os
if we're checking for presence. Also saves us the UTF8 conversion.
54d5a21
to
f392997
Compare
@bors: r=Mark-Simulacrum |
📌 Commit f392997 has been approved by |
@bors r-
|
f392997
to
b2aab9c
Compare
@bors: r=Mark-Simulacrum |
📌 Commit b2aab9c has been approved by |
In these situations Cargo just prints out a warning about ignoring the flag anyway, so let `make` take care of jobs and whatnot instead of getting warnings printed.
b2aab9c
to
4857bb7
Compare
@bors: r=Mark-Simulacrum |
📌 Commit 4857bb7 has been approved by |
rustbuild: Don't pass `-j` if called by `make` In these situations Cargo just prints out a warning about ignoring the flag anyway, so let `make` take care of jobs and whatnot instead of getting warnings printed.
☀️ Test successful - status-appveyor, status-travis |
In these situations Cargo just prints out a warning about ignoring the flag
anyway, so let
make
take care of jobs and whatnot instead of getting warningsprinted.