Skip to content

Fix run-make/bare-outfile test #28806

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
Oct 4, 2015
Merged

Conversation

wthrowe
Copy link
Contributor

@wthrowe wthrowe commented Oct 2, 2015

The reason this was not failing is fascinating. The variable $(rustc)
is empty, so the make recipe was expanded as " -o foo foo.rs". make
interpreted this as an instruction to run the command "o foo foo.rs"
and ignore any failure that occurred, because it uses a leading '-' on
a command to signal that behavior.

@rust-highfive
Copy link
Contributor

r? @brson

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

@alexcrichton
Copy link
Member

Oh wow, thanks for this! Could this actually use cd to generate the file into the output directory? It's possible that make gets killed during testing which could end up polluting the source tree unfortunately.

The reason this was not failing is fascinating.  The variable $(rustc)
is empty, so the make recipe was expanded as " -o foo foo.rs".  make
interpreted this as an instruction to run the command "o foo foo.rs"
and ignore any failure that occurred, because it uses a leading '-' on
a command to signal that behavior.
@wthrowe
Copy link
Contributor Author

wthrowe commented Oct 3, 2015

Ah, yeah, that's a better way to do it. Changed.

@alexcrichton
Copy link
Member

@bors: r+ e3df519

Thanks!

bors added a commit that referenced this pull request Oct 4, 2015
The reason this was not failing is fascinating.  The variable $(rustc)
is empty, so the make recipe was expanded as " -o foo foo.rs".  make
interpreted this as an instruction to run the command "o foo foo.rs"
and ignore any failure that occurred, because it uses a leading '-' on
a command to signal that behavior.
@bors
Copy link
Collaborator

bors commented Oct 4, 2015

⌛ Testing commit e3df519 with merge 7f4665c...

@bors bors merged commit e3df519 into rust-lang:master Oct 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants