summaryrefslogtreecommitdiff
path: root/bootstrap/rust-1.61/0001-Fix-LLVM-build.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2024-07-24 21:26:28 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2024-10-17 00:58:44 -0500
commit3bb402800fd7e4c05da8348662c5c0a57bbadec6 (patch)
tree26b44cecc56ce8277a47768748189c3336ae5e2f /bootstrap/rust-1.61/0001-Fix-LLVM-build.patch
parentbd00c43d012b561e4e61feb523d034c3b1de5cb5 (diff)
downloadpackages-3bb402800fd7e4c05da8348662c5c0a57bbadec6.tar.gz
packages-3bb402800fd7e4c05da8348662c5c0a57bbadec6.tar.bz2
packages-3bb402800fd7e4c05da8348662c5c0a57bbadec6.tar.xz
packages-3bb402800fd7e4c05da8348662c5c0a57bbadec6.zip
bootstrap/rust-1.61: New package
Diffstat (limited to 'bootstrap/rust-1.61/0001-Fix-LLVM-build.patch')
-rw-r--r--bootstrap/rust-1.61/0001-Fix-LLVM-build.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/bootstrap/rust-1.61/0001-Fix-LLVM-build.patch b/bootstrap/rust-1.61/0001-Fix-LLVM-build.patch
new file mode 100644
index 000000000..35220f5d2
--- /dev/null
+++ b/bootstrap/rust-1.61/0001-Fix-LLVM-build.patch
@@ -0,0 +1,25 @@
+From 1a5423cf2c7eb0784fcc9b789cdd271efbf43d45 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/14] Fix LLVM build
+
+---
+ src/bootstrap/lib.rs | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs
+index 3130dcc277b..c6ac4f9e636 100644
+--- a/src/bootstrap/lib.rs
++++ b/src/bootstrap/lib.rs
+@@ -1023,7 +1023,7 @@ fn cflags(&self, target: TargetSelection, which: GitRepo, c: CLang) -> Vec<Strin
+ .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 on macOS then we add a few unconditional flags
+--
+2.35.1
+