rustc_back: Learn about i686-pc-windows-msvc

This commit adds the i686-pc-windows-msvc triple to the compiler's repertoire of
triples to prepare for targeting 32-bit MSVC.
This commit is contained in:
Alex Crichton 2015-06-25 15:32:10 -07:00
parent ae36d4f72a
commit 5de665e8b3
2 changed files with 29 additions and 1 deletions

View File

@ -0,0 +1,27 @@
// Copyright 2015 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.
use target::Target;
pub fn target() -> Target {
let mut base = super::windows_msvc_base::opts();
base.cpu = "i686".to_string();
Target {
data_layout: "e-p:32:32-f64:64:64-i64:64:64-f80:32:32-n8:16:32".to_string(),
llvm_target: "i686-pc-windows-msvc".to_string(),
target_endian: "little".to_string(),
target_pointer_width: "32".to_string(),
arch: "x86".to_string(),
target_os: "windows".to_string(),
target_env: "msvc".to_string(),
options: base,
}
}

View File

@ -381,7 +381,8 @@ impl Target {
x86_64_pc_windows_gnu,
i686_pc_windows_gnu,
x86_64_pc_windows_msvc
x86_64_pc_windows_msvc,
i686_pc_windows_msvc
);