Uh oh!
There was an error while loading. Please reload this page.
rustbuild: Add a way to build all tools as part of 'x.py build' - #42979
rustbuild: Add a way to build all tools as part of 'x.py build'#42979Keruspe wants to merge 2 commits into
Conversation
This does not change what we install (as opposed to extended). This only causes all the tools to be built as part of './x.py build'. This is useful to check that all the tools compile fine, and will avoid some compilation during './x.py install' if it is enabled. Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
rust-highfive
commented
Jun 30, 2017
(rust_highfive has picked a reviewer for you, use r? to override) |
Some components are only built when they're being pulled in as dependencies with .stage(0) specified. They now can also be pulled in with build-all-tools, hence only build them as stage 0. Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
Keruspe
commented
Jun 30, 2017
Fixed the tidy issue. |
alexcrichton
commented
Jul 5, 2017
Hm sorry I think I've lost context in the meantime by why is it again that |
Keruspe
commented
Jul 6, 2017
Well, running I tried to keep the diff minimal. I had to add the "only-stage" thing because otherwise the tools in stage2 would be pulled in by I hope that helps clarify things, and doesn't make it even more confuse. |
alexcrichton
commented
Jul 6, 2017
Hm ok. I'm wary of this because of how much default behavior it hardcodes into the step rules which seems very brittle and likely to not work into the future. It seems to me like the real solution here is to get In terms of future-proofing the logic that seems to me like the better option to solving this than hardcoding all of these tools at stage0? |
Keruspe
commented
Jul 6, 2017
That would be a solution too indeed, but wouldn't that be a little "overkill"? |
alexcrichton
commented
Jul 6, 2017
I think it'd make more sense to just add dependency tracking to the dist steps. I don't think it'd be very hard to make something naive and coarse |
alexcrichton
commented
Jul 13, 2017
ping @Keruspe, just wanted to make sure this doesn't fall off your radar! |
Keruspe
commented
Jul 14, 2017
Yeah sure, just haven't had time to look into it lately as I'm currently moving, but will try to make that happen early in the next cycle, for 1.21 |
alexcrichton
commented
Jul 20, 2017
ping @Keruspe, just another ping to make sure this isn't forgotten! |
bors
commented
Jul 22, 2017
☔ The latest upstream changes (presumably #43059) made this pull request unmergeable. Please resolve the merge conflicts. |
alexcrichton
commented
Jul 27, 2017
Ok I'm going to close this out of inactivity to help clear up the queue, but plese feel free to resubmit with a rebase! |
With these two patches and the feature turned on, running
./x.py installafter./x.py builddoesn't need to compile anything. Only the doc/dist/install steps are actually doing something.