]>
git.proxmox.com Git - rustc.git/blob - src/librustc_back/target/i686_pc_windows_gnu.rs
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.
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.
13 pub fn target() -> Target
{
14 let mut options
= super::windows_base
::opts();
15 options
.cpu
= "pentium4".to_string();
17 // Mark all dynamic libraries and executables as compatible with the larger 4GiB address
18 // space available to x86 Windows binaries on x86_64.
19 options
.pre_link_args
.push("-Wl,--large-address-aware".to_string());
21 // Make sure that we link to the dynamic libgcc, otherwise cross-module
22 // DWARF stack unwinding will not work.
23 // This behavior may be overridden by -Clink-args="-static-libgcc"
24 options
.pre_link_args
.push("-shared-libgcc".to_string());
27 data_layout
: "e-p:32:32-f64:64:64-i64:64:64-f80:32:32-n8:16:32".to_string(),
28 llvm_target
: "i686-pc-windows-gnu".to_string(),
29 target_endian
: "little".to_string(),
30 target_pointer_width
: "32".to_string(),
31 arch
: "x86".to_string(),
32 target_os
: "windows".to_string(),
33 target_env
: "gnu".to_string(),