]> git.proxmox.com Git - rustc.git/blobdiff - src/librustc_back/target/i686_unknown_dragonfly.rs
New upstream version 1.12.0+dfsg1
[rustc.git] / src / librustc_back / target / i686_unknown_dragonfly.rs
index 6446ac45f7d6e92b8174231a09f6860f3cb29ab8..f96ec004b481eaf98fb908a1191bb8a814768294 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::dragonfly_base::opts();
     base.cpu = "pentium4".to_string();
     base.max_atomic_width = 64;
     base.pre_link_args.push("-m32".to_string());
 
-    Target {
+    Ok(Target {
         llvm_target: "i686-unknown-dragonfly".to_string(),
         target_endian: "little".to_string(),
         target_pointer_width: "32".to_string(),
@@ -26,5 +26,5 @@ pub fn target() -> Target {
         target_env: "".to_string(),
         target_vendor: "unknown".to_string(),
         options: base,
-    }
+    })
 }