]> git.proxmox.com Git - rustc.git/blobdiff - src/librustc_back/target/powerpc64le_unknown_linux_gnu.rs
New upstream version 1.12.0+dfsg1
[rustc.git] / src / librustc_back / target / powerpc64le_unknown_linux_gnu.rs
index b0a81ce7ec5018162f0a3a023810671f1da4cdd8..906e28d2f20cb1d0c778f8ab9e455414deaac481 100644 (file)
@@ -8,15 +8,15 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-use target::Target;
+use target::{Target, TargetResult};
 
-pub fn target() -> Target {
+pub fn target() -> TargetResult {
     let mut base = super::linux_base::opts();
     base.cpu = "ppc64le".to_string();
     base.pre_link_args.push("-m64".to_string());
     base.max_atomic_width = 64;
 
-    Target {
+    Ok(Target {
         llvm_target: "powerpc64le-unknown-linux-gnu".to_string(),
         target_endian: "little".to_string(),
         target_pointer_width: "64".to_string(),
@@ -26,5 +26,5 @@ pub fn target() -> Target {
         target_env: "gnu".to_string(),
         target_vendor: "unknown".to_string(),
         options: base,
-    }
+    })
 }