]> git.proxmox.com Git - rustc.git/blame - src/librustc_back/target/i686_pc_windows_gnu.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / librustc_back / target / i686_pc_windows_gnu.rs
CommitLineData
1a4d82fc
JJ
1// Copyright 2014 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
11use target::Target;
12
13pub fn target() -> Target {
92a42be0
SL
14 let mut base = super::windows_base::opts();
15 base.cpu = "pentium4".to_string();
1a4d82fc
JJ
16
17 // Mark all dynamic libraries and executables as compatible with the larger 4GiB address
18 // space available to x86 Windows binaries on x86_64.
92a42be0 19 base.pre_link_args.push("-Wl,--large-address-aware".to_string());
1a4d82fc
JJ
20
21 Target {
1a4d82fc
JJ
22 llvm_target: "i686-pc-windows-gnu".to_string(),
23 target_endian: "little".to_string(),
24 target_pointer_width: "32".to_string(),
54a0048b 25 data_layout: "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32".to_string(),
1a4d82fc
JJ
26 arch: "x86".to_string(),
27 target_os: "windows".to_string(),
d9579d0f 28 target_env: "gnu".to_string(),
b039eaaf 29 target_vendor: "pc".to_string(),
92a42be0 30 options: base,
1a4d82fc
JJ
31 }
32}