Stream: general

Topic: LLVM for stage 0?


RalfJ (Aug 09 2019 at 18:09, on Zulip):

Why does x.py build LLVM when I do ./x.py test --stage 0 src/test/ui? that seems odd

simulacrum (Aug 09 2019 at 18:17, on Zulip):

hm, I suspect that builds a full compiler toolchain?

simulacrum (Aug 09 2019 at 18:18, on Zulip):

and/or it presumes we need an LLVM for UI tests which might be true for some (i.e., they're run-pass tests so generally speaking you do somewhat need an LLVM)

simulacrum (Aug 09 2019 at 18:18, on Zulip):

basically it comes down to "imprecise dependency tracking" which is a staple of x.py

RalfJ (Aug 09 2019 at 18:24, on Zulip):

I first thought this was a recent regression but actually I dont think I ever tried running UI tests on stage 0

simulacrum (Aug 09 2019 at 19:06, on Zulip):

it's ... a bit weird

simulacrum (Aug 09 2019 at 19:07, on Zulip):

since you're testing presumably against a boostrap compiler? which is like old so the UI tests are likely to fail

simulacrum (Aug 09 2019 at 19:07, on Zulip):

and if you are not testing against a bootstrap compiler then you're not really in stage0

RalfJ (Aug 09 2019 at 20:01, on Zulip):

yeah I wanted to use the bootstrap compiler

RalfJ (Aug 09 2019 at 20:01, on Zulip):

for the particular UI test I was editing, it's good enough

RalfJ (Aug 09 2019 at 20:01, on Zulip):

and I wanted to avoid building an entire rustc

simulacrum (Aug 09 2019 at 20:19, on Zulip):

yeah I suspect no one has thought of that scenario so... we don't support it :)

Last update: Nov 21 2019 at 23:25UTC