Skip to content

Commit fe3038f

Browse files
committedNov 25, 2023
Auto merge of #118284 - RalfJung:miri, r=RalfJung
Miri subtree update
2 parents 3166210 + 547598b commit fe3038f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+716
-454
lines changed
 

Diff for: ‎src/tools/miri/.github/workflows/ci.yml

-4
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ jobs:
3535
steps:
3636
- uses: actions/checkout@v3
3737

38-
- name: Set the tag GC interval to 1 on linux
39-
if: runner.os == 'Linux'
40-
run: echo "MIRIFLAGS=-Zmiri-provenance-gc=1" >> $GITHUB_ENV
41-
4238
# Cache the global cargo directory, but NOT the local `target` directory which
4339
# we cannot reuse anyway when the nightly changes (and it grows quite large
4440
# over time).

Diff for: ‎src/tools/miri/cargo-miri/src/setup.rs

+14-5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
33
use std::env;
44
use std::ffi::OsStr;
5+
use std::fmt::Write;
56
use std::path::PathBuf;
67
use std::process::{self, Command};
78

@@ -140,12 +141,20 @@ pub fn setup(
140141
// Do the build.
141142
if print_sysroot {
142143
// Be silent.
143-
} else if only_setup {
144-
// We want to be explicit.
145-
eprintln!("Preparing a sysroot for Miri (target: {target})...");
146144
} else {
147-
// We want to be quiet, but still let the user know that something is happening.
148-
eprint!("Preparing a sysroot for Miri (target: {target})... ");
145+
let mut msg = String::new();
146+
write!(msg, "Preparing a sysroot for Miri (target: {target})").unwrap();
147+
if verbose > 0 {
148+
write!(msg, " in {}", sysroot_dir.display()).unwrap();
149+
}
150+
write!(msg, "...").unwrap();
151+
if only_setup {
152+
// We want to be explicit.
153+
eprintln!("{msg}");
154+
} else {
155+
// We want to be quiet, but still let the user know that something is happening.
156+
eprint!("{msg} ");
157+
}
149158
}
150159
SysrootBuilder::new(&sysroot_dir, target)
151160
.build_mode(BuildMode::Check)

0 commit comments

Comments
 (0)
Please sign in to comment.