aboutsummaryrefslogtreecommitdiff
path: root/extra/rust/patches/musl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extra/rust/patches/musl.patch')
-rw-r--r--extra/rust/patches/musl.patch26
1 files changed, 15 insertions, 11 deletions
diff --git a/extra/rust/patches/musl.patch b/extra/rust/patches/musl.patch
index 6cb1c83e..04c246ca 100644
--- a/extra/rust/patches/musl.patch
+++ b/extra/rust/patches/musl.patch
@@ -1,8 +1,8 @@
diff --git a/src/bootstrap/compile.rs b/src/bootstrap/compile.rs
-index 8e5fe25..0d3e27e 100644
+index eced035..f988315 100644
--- a/src/bootstrap/compile.rs
+++ b/src/bootstrap/compile.rs
-@@ -136,7 +136,7 @@ fn copy_third_party_objects(builder: &Builder<'_>, compiler: &Compiler, target:
+@@ -132,7 +132,7 @@ fn copy_third_party_objects(
// with a glibc-targeting toolchain, given we have the appropriate startup
// files. As those shipped with glibc won't work, copy the ones provided by
// musl so we have them on linux-gnu hosts.
@@ -12,10 +12,10 @@ index 8e5fe25..0d3e27e 100644
for &obj in &["crt1.o", "crti.o", "crtn.o"] {
copy_and_stamp(&srcdir, obj);
diff --git a/src/bootstrap/sanity.rs b/src/bootstrap/sanity.rs
-index bffe748f3..40f9f597f 100644
+index 8ff7056..53c0194 100644
--- a/src/bootstrap/sanity.rs
+++ b/src/bootstrap/sanity.rs
-@@ -188,7 +188,7 @@ pub fn check(build: &mut Build) {
+@@ -205,7 +205,7 @@ pub fn check(build: &mut Build) {
}
// Make sure musl-root is valid
@@ -25,7 +25,7 @@ index bffe748f3..40f9f597f 100644
// fall back to the system toolchain in /usr before giving up
if build.musl_root(*target).is_none() && build.config.build == *target {
diff --git a/src/librustc_target/spec/linux_musl_base.rs b/src/librustc_target/spec/linux_musl_base.rs
-index e294e6398..17fecb3b2 100644
+index e294e63..17fecb3 100644
--- a/src/librustc_target/spec/linux_musl_base.rs
+++ b/src/librustc_target/spec/linux_musl_base.rs
@@ -26,7 +26,7 @@ pub fn opts() -> TargetOptions {
@@ -37,8 +37,9 @@ index e294e6398..17fecb3b2 100644
// These targets allow the user to choose between static and dynamic linking.
base.crt_static_respected = true;
+
diff --git a/src/libunwind/build.rs b/src/libunwind/build.rs
-index f24d957d6..4632212fd 100644
+index a24808b..25300a5 100644
--- a/src/libunwind/build.rs
+++ b/src/libunwind/build.rs
@@ -10,7 +10,7 @@ fn main() {
@@ -50,11 +51,12 @@ index f24d957d6..4632212fd 100644
// linking for musl is handled in lib.rs
llvm_libunwind::compile();
} else if !target.contains("android") {
+
diff --git a/src/libunwind/lib.rs b/src/libunwind/lib.rs
-index 8d9164471..3adaaf43d 100644
+index 18d41be..6fddd6d 100644
--- a/src/libunwind/lib.rs
+++ b/src/libunwind/lib.rs
-@@ -20,7 +20,7 @@ cfg_if::cfg_if! {
+@@ -18,7 +18,7 @@ cfg_if::cfg_if! {
}
}
@@ -62,12 +64,13 @@ index 8d9164471..3adaaf43d 100644
+#[cfg(target_env = "noop")]
#[link(name = "unwind", kind = "static", cfg(target_feature = "crt-static"))]
#[link(name = "gcc_s", cfg(not(target_feature = "crt-static")))]
- extern {}
+ extern "C" {}
+
diff --git a/vendor/libc/src/unix/mod.rs b/vendor/libc/src/unix/mod.rs
-index 721d24116..26bf271cd 100644
+index 238da24..71d4f31 100644
--- a/vendor/libc/src/unix/mod.rs
+++ b/vendor/libc/src/unix/mod.rs
-@@ -296,7 +296,7 @@ cfg_if! {
+@@ -298,7 +298,7 @@ cfg_if! {
} else if #[cfg(feature = "std")] {
// cargo build, don't pull in anything extra as the libstd dep
// already pulls in all libs.
@@ -76,3 +79,4 @@ index 721d24116..26bf271cd 100644
#[cfg_attr(feature = "rustc-dep-of-std",
link(name = "c", kind = "static",
cfg(target_feature = "crt-static")))]
+