Skip to content

Commit d9d9554

Browse files
committed
cat the entire config.log
Signed-off-by: Daniel Paoliello <[email protected]>
1 parent 925d696 commit d9d9554

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

jemalloc-sys/build.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,14 @@ fn make_command(make_cmd: &str, build_dir: &Path, num_jobs: &str) -> Command {
385385

386386
fn run_and_log(cmd: &mut Command, log_file: &Path) {
387387
execute(cmd, || {
388-
run(Command::new("tail").arg("-n").arg("100").arg(log_file));
388+
// In CI systems print the whole log since it can be difficult to get to
389+
// a log file after the build fails. Otherwise print the last 100 lines
390+
// to keep the output concise.
391+
if env::var_os("CI").is_some() {
392+
run(Command::new("cat").arg(log_file));
393+
} else {
394+
run(Command::new("tail").arg("-n").arg("100").arg(log_file));
395+
}
389396
})
390397
}
391398

0 commit comments

Comments
 (0)