-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Fix make check-stage1 #27417
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
Fix make check-stage1 #27417
Conversation
stage1 rustc doesn't support catching panics, so we have to just kill the whole process on a fatal error. This is a little hacky... but it's not very much code, and we only use it for stage1 compilers. Also, use stage2 compiletest to run tests.
r? @pcwalton (rust_highfive has picked a reviewer for you, use r? to override) |
:O Fantastic! 💯 |
Out of curiosity, could you measure the different in compile time for just not passing |
I hope I did this right, but this is my result (on 64-bit Win10): With no-landing-pads:
With landing pads (enabled by commenting out this line):
|
Does this allow running the testsuite at stage0 or stage1? The testsuite is essential for developing & contributing to libstd etc. My patience with rust's long develop-compile-test cycles is already stretched pretty thin, if we go ahead to speed up full bootstrap at the cost of using tests at all, then something is missing. Something like |
|
I think I'd be in favor of just removing Thoughts @brson? |
OTOH, 2 minutes is not nothing. |
2 minutes are great savings, but maybe we can have a debug or developer switch that toggles it so that we can work productively on libs, for example using the stage0 tests? |
Sure, I agree that 2 minutes is nice to save, but there are downsides:
|
This also wasn't done on the fastest machine. What are the specs of the build bots? (alternatively someone could test/extrapolate the percentage bootstrap time saved by this to get a better metric, I didn't do that because my total time actually decreased which I suspect was due to noise) |
disregard I need sleep |
Ping. I've seen three possibilities proposed: this PR, a patch to remove the |
I'd prefer a configure option if we don't outright remove this bootstrap optimization. I don't think this is just for me, those actually working on rust need unwinding while testing their contributions and the test suite. I saw @nikomatsakis wanted to know how to turn this off too. |
Yes, I second the request for a configure flag. Perhaps tied to enable debug (which in my ideal world would not disable optimizations, but I guess that is orthogonal) -------- Original message -------- From: bluss [email protected] Date:08/19/2015 08:10 (GMT-05:00) To: rust-lang/rust [email protected] Cc: Niko Matsakis [email protected] Subject: Re: [rust] Fix make check-stage1 (#27417) I saw @nikomatsakis wanted to know how to turn this off too. — |
For now let's take the route of just tying Just tying to |
Well, it USED to WORK with |
Closing due to inactivity, and given the discussion on the discuss thread I've opened #28710 to track this. |
stage1 rustc doesn't support catching panics, so we have to just kill
the whole process on a fatal error. This is a little hacky... but it's not
very much code, and we only use it for stage1 compilers.
Also, use stage2 compiletest to run tests.