Skip to content

Commit f9bcd17

Browse files
fix time-passes collection
1 parent 5583bbb commit f9bcd17

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

ci/check-profiling.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ trap 'kill $PING_LOOP_PID' ERR 1 2 3 6
1313
RUST_BACKTRACE=1 RUST_LOG=raw_cargo_messages=trace,collector=debug,rust_sysroot=debug \
1414
bindir=`cargo run -p collector --bin collector install_next`
1515

16+
cargo build -p collector --bin rustc-fake
17+
1618
#----------------------------------------------------------------------------
1719
# Test the profilers
1820
#----------------------------------------------------------------------------

collector/src/rustc-fake.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,11 @@ fn main() {
145145

146146
"time-passes" => {
147147
args.insert(0, "-Ztime-passes".into());
148-
let mut cmd = bash_command(tool, args, "> Ztp");
149148

149+
let mut cmd = Command::new(&tool);
150+
cmd.args(args).stderr(std::process::Stdio::from(
151+
std::fs::File::create("Ztp").unwrap(),
152+
));
150153
assert!(cmd.status().expect("failed to spawn").success());
151154
}
152155

0 commit comments

Comments
 (0)