Skip to content

Commit d7c1474

Browse files
committed
Auto merge of rust-lang#12377 - Veykril:logs, r=Veykril
minor: log build script invocations
2 parents 161ab76 + 7274a48 commit d7c1474

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

crates/project-model/src/build_scripts.rs

+3-8
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,7 @@
66
//! This module implements this second part. We use "build script" terminology
77
//! here, but it covers procedural macros as well.
88
9-
use std::{
10-
cell::RefCell,
11-
io,
12-
path::PathBuf,
13-
process::{Command, Stdio},
14-
};
9+
use std::{cell::RefCell, io, path::PathBuf, process::Command};
1510

1611
use cargo_metadata::{camino::Utf8Path, Message};
1712
use la_arena::ArenaMap;
@@ -95,8 +90,6 @@ impl WorkspaceBuildScripts {
9590

9691
cmd.current_dir(workspace.workspace_root());
9792

98-
cmd.stdout(Stdio::piped()).stderr(Stdio::piped()).stdin(Stdio::null());
99-
10093
let mut res = WorkspaceBuildScripts::default();
10194
// NB: Cargo.toml could have been modified between `cargo metadata` and
10295
// `cargo check`. We shouldn't assume that package ids we see here are
@@ -114,6 +107,8 @@ impl WorkspaceBuildScripts {
114107
e.push_str(err);
115108
e.push('\n');
116109
};
110+
111+
tracing::info!("Running build scripts: {:?}", cmd);
117112
let output = stdx::process::streaming_output(
118113
cmd,
119114
&mut |line| {

0 commit comments

Comments
 (0)