Skip to content

Commit

Permalink
Remove trailing newline from llvm-config output
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Mar 19, 2020
1 parent 2602289 commit 841558d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bootstrap/test.rs
Expand Up @@ -1141,6 +1141,8 @@ impl Step for Compiletest {
let llvm_config = builder.ensure(native::Llvm { target: builder.config.build });
if !builder.config.dry_run {
let llvm_version = output(Command::new(&llvm_config).arg("--version"));
// Remove trailing newline from llvm-config output.
let llvm_version = llvm_version.trim_end();
cmd.arg("--llvm-version").arg(llvm_version);
}
if !builder.is_rust_llvm(target) {
Expand Down

0 comments on commit 841558d

Please sign in to comment.