diff options
Diffstat (limited to 'community/rust/alpine-target.patch')
-rw-r--r-- | community/rust/alpine-target.patch | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/community/rust/alpine-target.patch b/community/rust/alpine-target.patch index d8cd7d7b1c..4bb2173e5a 100644 --- a/community/rust/alpine-target.patch +++ b/community/rust/alpine-target.patch @@ -25,7 +25,7 @@ and distribution-specific quirks instead of polluting the main musl target of /// Everything `rustc` knows about how to compile for a specific target. --- /dev/null +++ b/src/librustc_back/target/i586_alpine_linux_musl.rs -@@ -0,0 +1,35 @@ +@@ -0,0 +1,36 @@ +// Copyright 2017 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. @@ -43,6 +43,7 @@ and distribution-specific quirks instead of polluting the main musl target of + let mut base = super::linux_musl_base::opts(); + base.cpu = "pentium4".to_string(); + base.max_atomic_width = Some(64); ++ base.stack_probes = true; + base.crt_static_default = false; + base.static_position_independent_executables = true; + base.need_rpath = true; @@ -63,7 +64,7 @@ and distribution-specific quirks instead of polluting the main musl target of +} --- /dev/null +++ b/src/librustc_back/target/x86_64_alpine_linux_musl.rs -@@ -0,0 +1,35 @@ +@@ -0,0 +1,36 @@ +// Copyright 2017 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. @@ -81,6 +82,7 @@ and distribution-specific quirks instead of polluting the main musl target of + let mut base = super::linux_musl_base::opts(); + base.cpu = "x86-64".to_string(); + base.max_atomic_width = Some(64); ++ base.stack_probes = true; + base.crt_static_default = false; + base.static_position_independent_executables = true; + base.need_rpath = true; |