Skip to content

Commit 37ff680

Browse files
authored
Rollup merge of #138232 - Kobzol:gcc-reduce-verbosity, r=GuillaumeGomez
Reduce verbosity of GCC build log It was a bit too spammy before. Fixes: #138213 r? ``@GuillaumeGomez``
2 parents 92fd45b + 2cff733 commit 37ff680

File tree

1 file changed

+11
-2
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+11
-2
lines changed

src/bootstrap/src/core/build_steps/gcc.rs

+11-2
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ impl Step for Gcc {
125125
t!(stamp.remove());
126126
let _time = helpers::timeit(builder);
127127
t!(fs::create_dir_all(&out_dir));
128+
t!(fs::create_dir_all(&install_dir));
128129

129130
let libgccjit_path = libgccjit_built_path(&install_dir);
130131
if builder.config.dry_run() {
@@ -185,8 +186,16 @@ impl Step for Gcc {
185186
}
186187
configure_cmd.run(builder);
187188

188-
command("make").current_dir(&out_dir).arg(format!("-j{}", builder.jobs())).run(builder);
189-
command("make").current_dir(&out_dir).arg("install").run(builder);
189+
command("make")
190+
.current_dir(&out_dir)
191+
.arg("--silent")
192+
.arg(format!("-j{}", builder.jobs()))
193+
.run_capture_stdout(builder);
194+
command("make")
195+
.current_dir(&out_dir)
196+
.arg("--silent")
197+
.arg("install")
198+
.run_capture_stdout(builder);
190199

191200
let lib_alias = install_dir.join("lib/libgccjit.so.0");
192201
if !lib_alias.exists() {

0 commit comments

Comments
 (0)