summaryrefslogtreecommitdiff
path: root/user/rust/0001-Fix-LLVM-build.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2024-08-04 01:47:47 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2024-08-09 15:21:38 -0500
commitddea10d9c5217bb01c06ce8d28e58dc73bf3a901 (patch)
tree1a1ebbe3fbf10980584de9212de32d8412ddb8d2 /user/rust/0001-Fix-LLVM-build.patch
parent79a51285be9c224976f6bccfb4096407a19a5dac (diff)
downloadpackages-ddea10d9c5217bb01c06ce8d28e58dc73bf3a901.tar.gz
packages-ddea10d9c5217bb01c06ce8d28e58dc73bf3a901.tar.bz2
packages-ddea10d9c5217bb01c06ce8d28e58dc73bf3a901.tar.xz
packages-ddea10d9c5217bb01c06ce8d28e58dc73bf3a901.zip
user/rust: Add version 1.80.0
Fully tested and working on PPC64. Other arches pending.
Diffstat (limited to 'user/rust/0001-Fix-LLVM-build.patch')
-rw-r--r--user/rust/0001-Fix-LLVM-build.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/user/rust/0001-Fix-LLVM-build.patch b/user/rust/0001-Fix-LLVM-build.patch
new file mode 100644
index 000000000..67ad9dbf8
--- /dev/null
+++ b/user/rust/0001-Fix-LLVM-build.patch
@@ -0,0 +1,22 @@
+From 855b7d97e96e67bd5db5c0016c3b9965a5c1843f Mon Sep 17 00:00:00 2001
+From: Samuel Holland <samuel@sholland.org>
+Date: Fri, 8 Sep 2017 00:04:29 -0500
+Subject: [PATCH 01/12] Fix LLVM build
+
+---
+ src/bootstrap/src/lib.rs | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/bootstrap/src/lib.rs b/src/bootstrap/src/lib.rs
+index 33b8f1a7ce720..d933a8bc37f88 100644
+--- a/src/bootstrap/src/lib.rs
++++ b/src/bootstrap/src/lib.rs
+@@ -1262,7 +1262,7 @@ impl Build {
+ .args()
+ .iter()
+ .map(|s| s.to_string_lossy().into_owned())
+- .filter(|s| !s.starts_with("-O") && !s.starts_with("/O"))
++ .filter(|s| !s.starts_with("-O") && !s.starts_with("/O") && !s.starts_with("-static"))
+ .collect::<Vec<String>>();
+
+ // If we're compiling C++ on macOS then we add a flag indicating that