2017-08-03 10:37:11 +02:00
|
|
|
// Copyright 2017 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.
|
|
|
|
|
2017-12-08 21:18:21 +02:00
|
|
|
use spec::{LinkerFlavor, Target, TargetResult};
|
2017-08-03 10:37:11 +02:00
|
|
|
|
|
|
|
pub fn target() -> TargetResult {
|
2018-03-10 15:00:26 +01:00
|
|
|
let mut base = super::l4re_base::opts();
|
2017-08-03 10:37:11 +02:00
|
|
|
base.cpu = "x86-64".to_string();
|
|
|
|
base.max_atomic_width = Some(64);
|
|
|
|
|
|
|
|
Ok(Target {
|
|
|
|
llvm_target: "x86_64-unknown-l4re-uclibc".to_string(),
|
|
|
|
target_endian: "little".to_string(),
|
|
|
|
target_pointer_width: "64".to_string(),
|
2017-09-30 13:47:49 +02:00
|
|
|
target_c_int_width: "32".to_string(),
|
2017-08-03 10:37:11 +02:00
|
|
|
data_layout: "e-m:e-i64:64-f80:128-n8:16:32:64-S128".to_string(),
|
|
|
|
arch: "x86_64".to_string(),
|
|
|
|
target_os: "l4re".to_string(),
|
|
|
|
target_env: "uclibc".to_string(),
|
|
|
|
target_vendor: "unknown".to_string(),
|
|
|
|
linker_flavor: LinkerFlavor::Ld,
|
|
|
|
options: base,
|
|
|
|
})
|
|
|
|
}
|