]> git.proxmox.com Git - rustc.git/blame - src/librustc_back/target/powerpc_unknown_linux_gnu.rs
New upstream version 1.12.0+dfsg1
[rustc.git] / src / librustc_back / target / powerpc_unknown_linux_gnu.rs
CommitLineData
85aaf69f
SL
1// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
2// file at the top-level directory of this distribution and at
3// http://rust-lang.org/COPYRIGHT.
4//
5// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8// option. This file may not be copied, modified, or distributed
9// except according to those terms.
10
5bcae85e 11use target::{Target, TargetResult};
85aaf69f 12
5bcae85e 13pub fn target() -> TargetResult {
85aaf69f
SL
14 let mut base = super::linux_base::opts();
15 base.pre_link_args.push("-m32".to_string());
a7813a04 16 base.max_atomic_width = 32;
85aaf69f 17
5bcae85e 18 Ok(Target {
85aaf69f
SL
19 llvm_target: "powerpc-unknown-linux-gnu".to_string(),
20 target_endian: "big".to_string(),
21 target_pointer_width: "32".to_string(),
54a0048b 22 data_layout: "E-m:e-p:32:32-i64:64-n32".to_string(),
85aaf69f
SL
23 arch: "powerpc".to_string(),
24 target_os: "linux".to_string(),
d9579d0f 25 target_env: "gnu".to_string(),
b039eaaf 26 target_vendor: "unknown".to_string(),
85aaf69f 27 options: base,
5bcae85e 28 })
85aaf69f 29}