diff options
author | Samuel Holland <samuel@sholland.org> | 2018-09-19 02:31:46 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-09-25 00:08:16 +0000 |
commit | cd980d29292f8f5d6bb8bef5773ce91b95bfb90a (patch) | |
tree | 7eeb0fd1825894538eea675625a9f3009f3fca9d /user/rust/0003-Fix-LLVM-build.patch | |
parent | 63266fdc6f2014cc6dfd0f983e13de7c378bc708 (diff) | |
download | packages-cd980d29292f8f5d6bb8bef5773ce91b95bfb90a.tar.gz packages-cd980d29292f8f5d6bb8bef5773ce91b95bfb90a.tar.bz2 packages-cd980d29292f8f5d6bb8bef5773ce91b95bfb90a.tar.xz packages-cd980d29292f8f5d6bb8bef5773ce91b95bfb90a.zip |
user/rust: new package
Diffstat (limited to 'user/rust/0003-Fix-LLVM-build.patch')
-rw-r--r-- | user/rust/0003-Fix-LLVM-build.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/user/rust/0003-Fix-LLVM-build.patch b/user/rust/0003-Fix-LLVM-build.patch new file mode 100644 index 000000000..d2ca8526b --- /dev/null +++ b/user/rust/0003-Fix-LLVM-build.patch @@ -0,0 +1,26 @@ +From 272bbaa5abe4f165a1f45ea1e9b33604af3ca77b Mon Sep 17 00:00:00 2001 +From: Samuel Holland <samuel@sholland.org> +Date: Fri, 8 Sep 2017 00:04:29 -0500 +Subject: [PATCH 03/28] Fix LLVM build + +--- + src/bootstrap/lib.rs | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs +index 1efff19dfb..e6ac847afe 100644 +--- a/src/bootstrap/lib.rs ++++ b/src/bootstrap/lib.rs +@@ -742,7 +742,8 @@ impl Build { + // cc-rs because the build scripts will determine that for themselves. + let mut base = self.cc[&target].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<_>>(); + + // If we're compiling on macOS then we add a few unconditional flags +-- +2.18.0 + |