aboutsummaryrefslogtreecommitdiffstats
path: root/community/rust/alpine-target.patch
diff options
context:
space:
mode:
authorMarat Safin <jeizsm@gmail.com>2017-10-18 15:22:28 +0300
committerJakub Jirutka <jakub@jirutka.cz>2017-10-23 17:40:45 +0200
commit3f325091dd8ca8d2f89368ed44bd9cbebf25721e (patch)
tree7e038b184ed0295db0cbd891ec433428a1d1189c /community/rust/alpine-target.patch
parent131105ff61d3bf6272f1fee753fef42f0147eff8 (diff)
downloadaports-3f325091dd8ca8d2f89368ed44bd9cbebf25721e.tar.bz2
aports-3f325091dd8ca8d2f89368ed44bd9cbebf25721e.tar.xz
community/rust: upgrade to 1.18
Diffstat (limited to 'community/rust/alpine-target.patch')
-rw-r--r--community/rust/alpine-target.patch8
1 files changed, 6 insertions, 2 deletions
diff --git a/community/rust/alpine-target.patch b/community/rust/alpine-target.patch
index e013a6bc2e..fc79b45b9a 100644
--- a/community/rust/alpine-target.patch
+++ b/community/rust/alpine-target.patch
@@ -8,7 +8,7 @@ and distribution-specific quirks instead of polluting the main musl target of
--- /dev/null
+++ b/src/librustc_back/target/i586_alpine_linux_musl.rs
-@@ -0,0 +1,32 @@
+@@ -0,0 +1,34 @@
+// 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.
@@ -19,6 +19,7 @@ and distribution-specific quirks instead of polluting the main musl target of
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
++use LinkerFlavor;
+use target::{Target, TargetResult};
+
+pub fn target() -> TargetResult {
@@ -38,6 +39,7 @@ and distribution-specific quirks instead of polluting the main musl target of
+ target_os: "linux".to_string(),
+ target_env: "musl".to_string(),
+ target_vendor: "alpine".to_string(),
++ linker_flavor: LinkerFlavor::Gcc,
+ options: base,
+ })
+}
@@ -55,7 +57,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/x86_64_alpine_linux_musl.rs
-@@ -0,0 +1,32 @@
+@@ -0,0 +1,34 @@
+// 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.
@@ -66,6 +68,7 @@ and distribution-specific quirks instead of polluting the main musl target of
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
++use LinkerFlavor;
+use target::{Target, TargetResult};
+
+pub fn target() -> TargetResult {
@@ -85,6 +88,7 @@ and distribution-specific quirks instead of polluting the main musl target of
+ target_os: "linux".to_string(),
+ target_env: "musl".to_string(),
+ target_vendor: "alpine".to_string(),
++ linker_flavor: LinkerFlavor::Gcc,
+ options: base,
+ })
+}