summaryrefslogtreecommitdiff
path: root/source/d/rust/rust.llvm10.841558d3bdc9c9510b841c438838196378741021.patch
diff options
context:
space:
mode:
Diffstat (limited to 'source/d/rust/rust.llvm10.841558d3bdc9c9510b841c438838196378741021.patch')
-rw-r--r--source/d/rust/rust.llvm10.841558d3bdc9c9510b841c438838196378741021.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/source/d/rust/rust.llvm10.841558d3bdc9c9510b841c438838196378741021.patch b/source/d/rust/rust.llvm10.841558d3bdc9c9510b841c438838196378741021.patch
new file mode 100644
index 00000000..983e144d
--- /dev/null
+++ b/source/d/rust/rust.llvm10.841558d3bdc9c9510b841c438838196378741021.patch
@@ -0,0 +1,23 @@
+From 841558d3bdc9c9510b841c438838196378741021 Mon Sep 17 00:00:00 2001
+From: Nikita Popov <nikita.ppv@gmail.com>
+Date: Tue, 4 Feb 2020 19:23:45 +0100
+Subject: [PATCH] Remove trailing newline from llvm-config output
+
+---
+ src/bootstrap/test.rs | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs
+index aa1d1b7c42413..b52fbe4666eb3 100644
+--- a/src/bootstrap/test.rs
++++ b/src/bootstrap/test.rs
+@@ -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) {
+