-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Include miri in config.example.toml[build] # tools= #129171
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
I am not reporting a changbe between 1.79 and 1.80. I am saying that old Rust versions built Miri by default (miri was in the implicit tools=[]), then it was removed from tools=[], and now miri is again in the implicit tools=[], but not in config.example.toml:tools=[...] |
The latter is called "Make miri a subtree instead of a submodule", which should give you an idea of why it changes so many files. ;)
Cc @rust-lang/bootstrap ; I don't know if this was a deliberate change or not or how the implicit "tools" array is even computed. Miri is a nightly-only tool so we probably do not want it to be built implicitly on stable. |
For dev/nightly channels, we simply build every tool by default: rust/src/bootstrap/src/core/build_steps/tool.rs Lines 1029 to 1042 in f04f6ca
If channel isn't dev/nightly, we only build tools are are marked as |
Okay so if the sample config.toml is supposed to show the default it should show both of these, presumably?
|
do not build `cargo-miri` by default on stable channel Skips `cargo-miri` build on `stable` channel just like `miri`. Closes rust-lang#129171 cc `@RalfJung`
Rollup merge of rust-lang#129243 - onur-ozkan:stuff, r=Kobzol do not build `cargo-miri` by default on stable channel Skips `cargo-miri` build on `stable` channel just like `miri`. Closes rust-lang#129171 cc ``@RalfJung``
In the past, the default tools=[...] in config.toml included Miri. The default of building Miri was removed at #100134 and #102028. The latter is called “Do not build Miri by default”, and as it changes 1211 files obviously I do not follow what exactly it does.
In any case, as in rustc-1.80.1-src.tar.xz:config.example.toml[build] # tools = [ "cargo", "clippy", "rustdoc", "rustfmt", "rust-analyzer", "rust-analyzer-proc-macro-srv", "analysis", "src", "rust-demangler", # if profiler = true]
does not include miri, my understanding is that
and
should produce identical result (except for rust-analyzer-proc-macro-srv). But the first
./configure
does lead to installing Miri, while the second skips installing Miri.As my observation is that now Miri is built by default (is part of the implicit tools=[…]), in config.example.toml tools= should indclude miri.
To be precise the first ./configure I ran against rustc-1.79.0-src.tar.xz and the second against rustc-1.80.1-src.tar.xz.
The text was updated successfully, but these errors were encountered: