-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Always check cg_llvm with ./x.py check #93273
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
Can you say more about the motivation here? It feels odd to me to override an explicit preference from the user here. It's worth noting that this sort of kind-sensitivity typically causes us trouble -- e.g., switching between x.py check and x.py build ideally doesn't cause (essentially) spurious rebuilds, but I suspect this change as-is may well cause that as the feature set changes for the rustc crate. Can you confirm whether this happens for you with this change (and llvm disabled in config.toml, of course)? |
./x.py check already checks cg_clif and I think cg_gcc even if you don't explicitly enable them. I personally disable cg_llvm to avoid having to build llvm. A check run doesn't need to build llvm anyway, so it only cost a couple of seconds while ensuring I don't break cg_llvm.
./x.py check runs with the dev profile and ./x.py build with the release profile, so they shouldn't clobber each others caches. |
Is this patch enough for you locally? For me, if I enable this patch and set codegen-backends = ["cranelift"], then I get a compilation failure during x.py check as part of the rustc_llvm build. I believe this is because of the auto-enabling if LLVM has already been built before here, even in check mode, which presumably falls down due to observing two different things or getting skipped? In any case, I don't think this should land until this bug is squashed out - it's not the most common configuration locally, but it seems like at least somewhat plausible one, so I'd rather avoid merging this. If you can't manage to reproduce, let me know, I can try to minimize -- I suspect it's just a matter of building before this PR without any codegen-backends config (and download-ci-llvm = true / a local build of LLVM), and then checking out this PR with LLVM omitted. Having written that out, this may also be a pre-existing bug, but it seems to me like that code I linked still seems plausibly buggy when used in conjunction with this PR -- I would expect us to need to change it to avoid problems. |
Previously it would be skipped if codegen-backends doesn't contain llvm.
I can't reproduce this issue. |
2400c2a
to
512cc35
Compare
Repeated attempts didn't produce failures for me either. Sorry for the run around. @bors r+ |
📌 Commit 512cc35 has been approved by |
…askrgr Rollup of 6 pull requests Successful merges: - rust-lang#92714 (Provide ignore message in the result of test) - rust-lang#93273 (Always check cg_llvm with ./x.py check) - rust-lang#94068 (Consider mutations as borrows in generator drop tracking) - rust-lang#94184 (BTree: simplify test code) - rust-lang#94297 (update const_generics_defaults release notes) - rust-lang#94341 (Remove a duplicate space) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Previously it would be skipped if codegen-backends doesn't contain llvm.