]> git.proxmox.com Git - rustc.git/blobdiff - src/librustc_back/target/x86_64_unknown_netbsd.rs
New upstream version 1.12.0+dfsg1
[rustc.git] / src / librustc_back / target / x86_64_unknown_netbsd.rs
index 7e6d1b78469e27ccd3f37a1e85609f247cc360a0..2d0b1e2a9330bac956cbfd18ed9d3efd8a57f4e6 100644 (file)
@@ -8,14 +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::netbsd_base::opts();
+    base.cpu = "x86-64".to_string();
     base.max_atomic_width = 64;
     base.pre_link_args.push("-m64".to_string());
 
-    Target {
+    Ok(Target {
         llvm_target: "x86_64-unknown-netbsd".to_string(),
         target_endian: "little".to_string(),
         target_pointer_width: "64".to_string(),
@@ -25,5 +26,5 @@ pub fn target() -> Target {
         target_env: "".to_string(),
         target_vendor: "unknown".to_string(),
         options: base,
-    }
+    })
 }