Skip to content

Commit 7923a66

Browse files
committed
Remove trailing newline from llvm-config output
1 parent 5c486f7 commit 7923a66

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bootstrap/test.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,6 +1139,8 @@ impl Step for Compiletest {
11391139
let llvm_config = builder.ensure(native::Llvm { target: builder.config.build });
11401140
if !builder.config.dry_run {
11411141
let llvm_version = output(Command::new(&llvm_config).arg("--version"));
1142+
// Remove trailing newline from llvm-config output.
1143+
let llvm_version = llvm_version.trim_end();
11421144
cmd.arg("--llvm-version").arg(llvm_version);
11431145
}
11441146
if !builder.is_rust_llvm(target) {

0 commit comments

Comments
 (0)