aboutsummaryrefslogtreecommitdiffstats
path: root/community/rust/alpine-target.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/rust/alpine-target.patch')
-rw-r--r--community/rust/alpine-target.patch42
1 files changed, 21 insertions, 21 deletions
diff --git a/community/rust/alpine-target.patch b/community/rust/alpine-target.patch
index 2392cdd7b9..1a3f70f1d1 100644
--- a/community/rust/alpine-target.patch
+++ b/community/rust/alpine-target.patch
@@ -17,8 +17,8 @@ and distribution-specific quirks instead of polluting the main musl target of
+pub fn target() -> Target {
+ let mut base = super::aarch64_unknown_linux_musl::target();
+
-+ base.llvm_target = "aarch64-alpine-linux-musl".to_string();
-+ base.options.vendor = "alpine".to_string();
++ base.llvm_target = "aarch64-alpine-linux-musl".into();
++ base.options.vendor = "alpine".into();
+ base.options.crt_static_default = false;
+ base.options.static_position_independent_executables = true;
+ base.options.need_rpath = true;
@@ -33,8 +33,8 @@ and distribution-specific quirks instead of polluting the main musl target of
+pub fn target() -> Target {
+ let mut base = super::arm_unknown_linux_musleabihf::target();
+
-+ base.llvm_target = "armv6-alpine-linux-musleabihf".to_string();
-+ base.options.vendor = "alpine".to_string();
++ base.llvm_target = "armv6-alpine-linux-musleabihf".into();
++ base.options.vendor = "alpine".into();
+ base.options.crt_static_default = false;
+ base.options.static_position_independent_executables = true;
+ base.options.need_rpath = true;
@@ -49,8 +49,8 @@ and distribution-specific quirks instead of polluting the main musl target of
+pub fn target() -> Target {
+ let mut base = super::armv7_unknown_linux_musleabihf::target();
+
-+ base.llvm_target = "armv7-alpine-linux-musleabihf".to_string();
-+ base.options.vendor = "alpine".to_string();
++ base.llvm_target = "armv7-alpine-linux-musleabihf".into();
++ base.options.vendor = "alpine".into();
+ base.options.crt_static_default = false;
+ base.options.static_position_independent_executables = true;
+ base.options.need_rpath = true;
@@ -65,9 +65,9 @@ and distribution-specific quirks instead of polluting the main musl target of
+pub fn target() -> Target {
+ let mut base = super::i686_unknown_linux_musl::target();
+
-+ base.options.cpu = "pentium4".to_string();
-+ base.llvm_target = "i586-alpine-linux-musl".to_string();
-+ base.options.vendor = "alpine".to_string();
++ base.options.cpu = "pentium4".into();
++ base.llvm_target = "i586-alpine-linux-musl".into();
++ base.options.vendor = "alpine".into();
+ base.options.crt_static_default = false;
+ base.options.static_position_independent_executables = true;
+ base.options.need_rpath = true;
@@ -101,8 +101,8 @@ and distribution-specific quirks instead of polluting the main musl target of
+pub fn target() -> Target {
+ let mut base = super::powerpc64_unknown_linux_musl::target();
+
-+ base.llvm_target = "powerpc64-alpine-linux-musl".to_string();
-+ base.options.vendor = "alpine".to_string();
++ base.llvm_target = "powerpc64-alpine-linux-musl".into();
++ base.options.vendor = "alpine".into();
+ base.options.crt_static_default = false;
+ base.options.static_position_independent_executables = true;
+ base.options.need_rpath = true;
@@ -117,8 +117,8 @@ and distribution-specific quirks instead of polluting the main musl target of
+pub fn target() -> Target {
+ let mut base = super::powerpc64le_unknown_linux_musl::target();
+
-+ base.llvm_target = "powerpc64le-alpine-linux-musl".to_string();
-+ base.options.vendor = "alpine".to_string();
++ base.llvm_target = "powerpc64le-alpine-linux-musl".into();
++ base.options.vendor = "alpine".into();
+ base.options.crt_static_default = false;
+ base.options.static_position_independent_executables = true;
+ base.options.need_rpath = true;
@@ -133,8 +133,8 @@ and distribution-specific quirks instead of polluting the main musl target of
+pub fn target() -> Target {
+ let mut base = super::powerpc_unknown_linux_musl::target();
+
-+ base.llvm_target = "powerpc-alpine-linux-musl".to_string();
-+ base.options.vendor = "alpine".to_string();
++ base.llvm_target = "powerpc-alpine-linux-musl".into();
++ base.options.vendor = "alpine".into();
+ base.options.crt_static_default = false;
+ base.options.static_position_independent_executables = true;
+ base.options.need_rpath = true;
@@ -149,8 +149,8 @@ and distribution-specific quirks instead of polluting the main musl target of
+pub fn target() -> Target {
+ let mut base = super::s390x_unknown_linux_musl::target();
+
-+ base.llvm_target = "s390x-alpine-linux-musl".to_string();
-+ base.options.vendor = "alpine".to_string();
++ base.llvm_target = "s390x-alpine-linux-musl".into();
++ base.options.vendor = "alpine".into();
+ base.options.crt_static_default = false;
+ base.options.static_position_independent_executables = true;
+ base.options.need_rpath = true;
@@ -165,8 +165,8 @@ and distribution-specific quirks instead of polluting the main musl target of
+pub fn target() -> Target {
+ let mut base = super::x86_64_unknown_linux_musl::target();
+
-+ base.llvm_target = "x86_64-alpine-linux-musl".to_string();
-+ base.options.vendor = "alpine".to_string();
++ base.llvm_target = "x86_64-alpine-linux-musl".into();
++ base.options.vendor = "alpine".into();
+ base.options.crt_static_default = false;
+ base.options.static_position_independent_executables = true;
+ base.options.need_rpath = true;
@@ -181,8 +181,8 @@ and distribution-specific quirks instead of polluting the main musl target of
+pub fn target() -> Target {
+ let mut base = super::riscv64gc_unknown_linux_musl::target();
+
-+ base.llvm_target = "riscv64-alpine-linux-musl".to_string();
-+ base.options.vendor = "alpine".to_string();
++ base.llvm_target = "riscv64-alpine-linux-musl".into();
++ base.options.vendor = "alpine".into();
+ base.options.crt_static_default = false;
+ base.options.static_position_independent_executables = true;
+ base.options.need_rpath = true;