about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJakub Beránek <berykubik@gmail.com>2025-03-08 16:47:32 +0100
committerJakub Beránek <berykubik@gmail.com>2025-03-08 16:47:32 +0100
commit2cff733dc5e9c2d390c887ca5aefdc96e6c656e3 (patch)
treec19136dbd339cc11674604c28f89e7695e5f0b41
parentcdd8af229960d05c8dfe5ca3e5f5e2066e676213 (diff)
downloadrust-2cff733dc5e9c2d390c887ca5aefdc96e6c656e3.tar.gz
rust-2cff733dc5e9c2d390c887ca5aefdc96e6c656e3.zip
Reduce verbosity of GCC build log
-rw-r--r--src/bootstrap/src/core/build_steps/gcc.rs13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/bootstrap/src/core/build_steps/gcc.rs b/src/bootstrap/src/core/build_steps/gcc.rs
index e8b6a577cea..70789fbbeeb 100644
--- a/src/bootstrap/src/core/build_steps/gcc.rs
+++ b/src/bootstrap/src/core/build_steps/gcc.rs
@@ -125,6 +125,7 @@ impl Step for Gcc {
         t!(stamp.remove());
         let _time = helpers::timeit(builder);
         t!(fs::create_dir_all(&out_dir));
+        t!(fs::create_dir_all(&install_dir));
 
         let libgccjit_path = libgccjit_built_path(&install_dir);
         if builder.config.dry_run() {
@@ -185,8 +186,16 @@ impl Step for Gcc {
         }
         configure_cmd.run(builder);
 
-        command("make").current_dir(&out_dir).arg(format!("-j{}", builder.jobs())).run(builder);
-        command("make").current_dir(&out_dir).arg("install").run(builder);
+        command("make")
+            .current_dir(&out_dir)
+            .arg("--silent")
+            .arg(format!("-j{}", builder.jobs()))
+            .run_capture_stdout(builder);
+        command("make")
+            .current_dir(&out_dir)
+            .arg("--silent")
+            .arg("install")
+            .run_capture_stdout(builder);
 
         let lib_alias = install_dir.join("lib/libgccjit.so.0");
         if !lib_alias.exists() {