summaryrefslogtreecommitdiff
path: root/user/rust/0010-Add-powerpc64-unknown-linux-musl-target.patch
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2019-03-21 22:34:00 -0500
committerSamuel Holland <samuel@sholland.org>2019-03-22 23:28:00 -0500
commitfd100f124927cd65cf821bd5d538815e81034c1b (patch)
tree380911715310d268c8c085a5f30f45f9195dd485 /user/rust/0010-Add-powerpc64-unknown-linux-musl-target.patch
parentedffe262c383c979833766a85cd65b74fb5231fa (diff)
downloadpackages-fd100f124927cd65cf821bd5d538815e81034c1b.tar.gz
packages-fd100f124927cd65cf821bd5d538815e81034c1b.tar.bz2
packages-fd100f124927cd65cf821bd5d538815e81034c1b.tar.xz
packages-fd100f124927cd65cf821bd5d538815e81034c1b.zip
user/rust: Bump to 1.33.0
Diffstat (limited to 'user/rust/0010-Add-powerpc64-unknown-linux-musl-target.patch')
-rw-r--r--user/rust/0010-Add-powerpc64-unknown-linux-musl-target.patch67
1 files changed, 0 insertions, 67 deletions
diff --git a/user/rust/0010-Add-powerpc64-unknown-linux-musl-target.patch b/user/rust/0010-Add-powerpc64-unknown-linux-musl-target.patch
deleted file mode 100644
index a575b1345..000000000
--- a/user/rust/0010-Add-powerpc64-unknown-linux-musl-target.patch
+++ /dev/null
@@ -1,67 +0,0 @@
-From c0d3804aa53dee33c03ebc8b64bd6f7a7b54044c Mon Sep 17 00:00:00 2001
-From: Samuel Holland <samuel@sholland.org>
-Date: Tue, 7 Aug 2018 21:59:15 -0500
-Subject: [PATCH 10/23] Add powerpc64-unknown-linux-musl target
-
----
- src/librustc_target/spec/mod.rs | 1 +
- .../spec/powerpc64_unknown_linux_musl.rs | 35 +++++++++++++++++++
- 2 files changed, 36 insertions(+)
- create mode 100644 src/librustc_target/spec/powerpc64_unknown_linux_musl.rs
-
-diff --git a/src/librustc_target/spec/mod.rs b/src/librustc_target/spec/mod.rs
-index 4b03f6141f..f75c4940c6 100644
---- a/src/librustc_target/spec/mod.rs
-+++ b/src/librustc_target/spec/mod.rs
-@@ -299,6 +299,7 @@ supported_targets! {
- ("powerpc-unknown-linux-gnuspe", powerpc_unknown_linux_gnuspe),
- ("powerpc-unknown-linux-musl", powerpc_unknown_linux_musl),
- ("powerpc64-unknown-linux-gnu", powerpc64_unknown_linux_gnu),
-+ ("powerpc64-unknown-linux-musl", powerpc64_unknown_linux_musl),
- ("powerpc64le-unknown-linux-gnu", powerpc64le_unknown_linux_gnu),
- ("powerpc64le-unknown-linux-musl", powerpc64le_unknown_linux_musl),
- ("s390x-unknown-linux-gnu", s390x_unknown_linux_gnu),
-diff --git a/src/librustc_target/spec/powerpc64_unknown_linux_musl.rs b/src/librustc_target/spec/powerpc64_unknown_linux_musl.rs
-new file mode 100644
-index 0000000000..24ff9e0ecd
---- /dev/null
-+++ b/src/librustc_target/spec/powerpc64_unknown_linux_musl.rs
-@@ -0,0 +1,35 @@
-+// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
-+// file at the top-level directory of this distribution and at
-+// http://rust-lang.org/COPYRIGHT.
-+//
-+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-+// option. This file may not be copied, modified, or distributed
-+// except according to those terms.
-+
-+use spec::{LinkerFlavor, Target, TargetResult};
-+
-+pub fn target() -> TargetResult {
-+ let mut base = super::linux_musl_base::opts();
-+ base.cpu = "ppc64".to_string();
-+ base.pre_link_args.get_mut(&LinkerFlavor::Gcc).unwrap().push("-m64".to_string());
-+ base.max_atomic_width = Some(64);
-+
-+ // see #36994
-+ base.exe_allocation_crate = None;
-+
-+ Ok(Target {
-+ llvm_target: "powerpc64-unknown-linux-musl".to_string(),
-+ target_endian: "big".to_string(),
-+ target_pointer_width: "64".to_string(),
-+ target_c_int_width: "32".to_string(),
-+ data_layout: "E-m:e-i64:64-n32:64".to_string(),
-+ arch: "powerpc64".to_string(),
-+ target_os: "linux".to_string(),
-+ target_env: "musl".to_string(),
-+ target_vendor: "unknown".to_string(),
-+ linker_flavor: LinkerFlavor::Gcc,
-+ options: base,
-+ })
-+}
---
-2.19.2
-