Skip to content

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

Merged
merged 1 commit into from
Sep 17, 2017

Conversation

alexcrichton
Copy link
Member

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.

@alexcrichton
Copy link
Member Author

r? @Mark-Simulacrum

@rust-highfive
Copy link
Contributor

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

.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() {
Copy link
Member

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.

@shepmaster shepmaster added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Sep 15, 2017
@alexcrichton
Copy link
Member Author

@bors: r=Mark-Simulacrum

@bors
Copy link
Collaborator

bors commented Sep 16, 2017

📌 Commit f392997 has been approved by Mark-Simulacrum

@TimNN
Copy link
Contributor

TimNN commented Sep 17, 2017

@bors r-

[00:01:38] error[E0433]: failed to resolve. Use of undeclared type or module `env`
[00:01:38]    --> /checkout/src/bootstrap/builder.rs:444:12

@alexcrichton
Copy link
Member Author

@bors: r=Mark-Simulacrum

@bors
Copy link
Collaborator

bors commented Sep 17, 2017

📌 Commit b2aab9c has been approved by Mark-Simulacrum

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.
@alexcrichton
Copy link
Member Author

@bors: r=Mark-Simulacrum

@bors
Copy link
Collaborator

bors commented Sep 17, 2017

📌 Commit 4857bb7 has been approved by Mark-Simulacrum

@bors
Copy link
Collaborator

bors commented Sep 17, 2017

⌛ Testing commit 4857bb7 with merge cfcac37...

bors added a commit that referenced this pull request Sep 17, 2017
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.
@bors
Copy link
Collaborator

bors commented Sep 17, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: Mark-Simulacrum
Pushing cfcac37 to master...

@bors bors merged commit 4857bb7 into rust-lang:master Sep 17, 2017
@alexcrichton alexcrichton deleted the rustbuild-no-j branch September 17, 2017 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants