about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-05-24 21:10:32 +0000
committerbors <bors@rust-lang.org>2022-05-24 21:10:32 +0000
commitd7c147406eff20783abba6ff1fe250ecc44cf800 (patch)
tree718d084c852f2551061188d64c3e35867b61fc1e
parent161ab76008c6eae1fc4278ed7a82c83189b9064d (diff)
parent7274a48657351dc9079d1fb07644714ae0b0522e (diff)
downloadrust-d7c147406eff20783abba6ff1fe250ecc44cf800.tar.gz
rust-d7c147406eff20783abba6ff1fe250ecc44cf800.zip
Auto merge of #12377 - Veykril:logs, r=Veykril
minor: log build script invocations
-rw-r--r--crates/project-model/src/build_scripts.rs11
1 files changed, 3 insertions, 8 deletions
diff --git a/crates/project-model/src/build_scripts.rs b/crates/project-model/src/build_scripts.rs
index d4792633efb..e0e29552ac8 100644
--- a/crates/project-model/src/build_scripts.rs
+++ b/crates/project-model/src/build_scripts.rs
@@ -6,12 +6,7 @@
 //! This module implements this second part. We use "build script" terminology
 //! here, but it covers procedural macros as well.
 
-use std::{
-    cell::RefCell,
-    io,
-    path::PathBuf,
-    process::{Command, Stdio},
-};
+use std::{cell::RefCell, io, path::PathBuf, process::Command};
 
 use cargo_metadata::{camino::Utf8Path, Message};
 use la_arena::ArenaMap;
@@ -95,8 +90,6 @@ impl WorkspaceBuildScripts {
 
         cmd.current_dir(workspace.workspace_root());
 
-        cmd.stdout(Stdio::piped()).stderr(Stdio::piped()).stdin(Stdio::null());
-
         let mut res = WorkspaceBuildScripts::default();
         // NB: Cargo.toml could have been modified between `cargo metadata` and
         // `cargo check`. We shouldn't assume that package ids we see here are
@@ -114,6 +107,8 @@ impl WorkspaceBuildScripts {
             e.push_str(err);
             e.push('\n');
         };
+
+        tracing::info!("Running build scripts: {:?}", cmd);
         let output = stdx::process::streaming_output(
             cmd,
             &mut |line| {