Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion jemalloc-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,14 @@ fn make_command(make_cmd: &str, build_dir: &Path, num_jobs: &str) -> Command {

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

Expand Down