Uh oh!
There was an error while loading. Please reload this page.
fix built-in target detection - #33363
Conversation
previously the logic was accepting wrong triples (like `x86_64_unknown-linux-musl`) as valid ones (like `x86_64-unknown-linux-musl`) if they contained an underscore instead of a dash. fixesrust-lang#33329
rust-highfive
commented
May 3, 2016
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @brson (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
brson
commented
May 3, 2016
@bors r+ |
bors
commented
May 3, 2016
📌 Commit 5943507 has been approved by |
| @@ -71,10 +71,9 @@ macro_rules! supported_targets { | |||
| // this would use a match if stringify! were allowed in pattern position | |||
There was a problem hiding this comment.
(it wasn't true anyway)
Actually it would look like this: http://is.gd/ot9Ta2
Now that we are using $triple instead of $module we can change this into a match. I'll send a follow up PR because this one already got pulled into the rollup.
There was a problem hiding this comment.
looks like no longer in the rollup
japaric
commented
May 5, 2016
Pushed a commit with the if -> match refactor @bors r=brson |
bors
commented
May 5, 2016
📌 Commit ec616d5 has been approved by |
bors
commented
May 8, 2016
⌛ Testing commit ec616d5 with merge c9ef2c4... |
bors
commented
May 8, 2016
💔 Test failed - auto-win-msvc-64-opt-rustbuild |
japaric
commented
Jun 17, 2016
I had forgotten about this PR 😅. Hmm, I guess this failed because there is no |
alexcrichton
commented
Jun 17, 2016
Oh I think that Windows has |
japaric
commented
Jun 18, 2016
@alexcrichton Does the msvc bot also have grep installed? And does it run the tests under the mingw shell? AFAICT my grep string has no special characters... just alphanum chars and |
alexcrichton
commented
Jun 19, 2016
They should yeah, currently all those bots run in a MinGW shell |
brson
commented
Jul 11, 2016
@bors retry Just retrying to see the error again. |
bors
commented
Jul 11, 2016
⌛ Testing commit ec616d5 with merge 7240b18... |
brson
commented
Jul 21, 2016
Error was: |
brson
commented
Jul 21, 2016
@japaric Can we just xfail this on windows and push it through? |
japaric
commented
Jul 22, 2016
brson
commented
Jul 22, 2016
@japaric Yep, and that snippet looks ok to me (but I've never ignored a run-make test before). |
japaric
commented
Jul 22, 2016
I just realized my Makefile is missing the @bors try |
bors
commented
Jul 22, 2016
fix built-in target detection previously the logic was accepting wrong triples (like `x86_64_unknown-linux-musl`) as valid ones (like `x86_64-unknown-linux-musl`) if they contained an underscore instead of a dash. fixes#33329 --- r? @brson I wanted to use a compile-fail test at first. But, you can't pass an extra `--target` flag to `rustc` for those because they already call `rustc --target $HOST` so you get a `error: Option 'target' given more than once.`. The run-make test used here works fine though.
bors
commented
Jul 23, 2016
💥 Test timed out |
alexcrichton
commented
Jul 23, 2016
japaric
commented
Jul 25, 2016
This was stuck in the queue as failed (because of the previous try). Rebased so I can r+ it again. @bors: r+ |
bors
commented
Jul 25, 2016
📌 Commit f438801 has been approved by |
bors
commented
Jul 25, 2016
⌛ Testing commit f438801 with merge 5033302... |
alexcrichton
commented
Jul 25, 2016
@bors: retry force clean
|
alexcrichton
commented
Jul 25, 2016
@bors: retry force clean |
bors
commented
Jul 25, 2016
⌛ Testing commit f438801 with merge 31db8e2... |
bors
commented
Jul 25, 2016
💔 Test failed - auto-win-gnu-32-opt |
alexcrichton
commented
Jul 25, 2016
@bors: retry On Mon, Jul 25, 2016 at 2:45 PM, bors notifications@github.com wrote:
|
bors
commented
Jul 26, 2016
⌛ Testing commit f438801 with merge c1b278a... |
bors
commented
Jul 26, 2016
💔 Test failed - auto-win-gnu-32-opt-rustbuild |
alexcrichton
commented
Jul 26, 2016
@bors: retry On Tue, Jul 26, 2016 at 3:02 AM, bors notifications@github.com wrote:
|
bors
commented
Jul 27, 2016
fix built-in target detection previously the logic was accepting wrong triples (like `x86_64_unknown-linux-musl`) as valid ones (like `x86_64-unknown-linux-musl`) if they contained an underscore instead of a dash. fixes#33329 --- r? @brson I wanted to use a compile-fail test at first. But, you can't pass an extra `--target` flag to `rustc` for those because they already call `rustc --target $HOST` so you get a `error: Option 'target' given more than once.`. The run-make test used here works fine though.
previously the logic was accepting wrong triples (like
x86_64_unknown-linux-musl) as valid ones (likex86_64-unknown-linux-musl) ifthey contained an underscore instead of a dash.
fixes#33329
r? @brson
I wanted to use a compile-fail test at first. But, you can't pass an extra
--targetflag torustcfor those because they already callrustc --target $HOSTso you get aerror: Option 'target' given more than once.. The run-make test used here works fine though.