]> git.proxmox.com Git - rustc.git/blob - src/librustc_target/spec/windows_msvc_base.rs
New upstream version 1.33.0+dfsg1
[rustc.git] / src / librustc_target / spec / windows_msvc_base.rs
1 use spec::{LinkArgs, LinkerFlavor, TargetOptions};
2 use std::default::Default;
3
4 pub fn opts() -> TargetOptions {
5 let mut args = LinkArgs::new();
6 args.insert(LinkerFlavor::Msvc,
7 vec!["/NOLOGO".to_string(),
8 "/NXCOMPAT".to_string()]);
9
10 TargetOptions {
11 function_sections: true,
12 dynamic_linking: true,
13 executables: true,
14 dll_prefix: String::new(),
15 dll_suffix: ".dll".to_string(),
16 exe_suffix: ".exe".to_string(),
17 staticlib_prefix: String::new(),
18 staticlib_suffix: ".lib".to_string(),
19 target_family: Some("windows".to_string()),
20 is_like_windows: true,
21 is_like_msvc: true,
22 pre_link_args: args,
23 crt_static_allows_dylibs: true,
24 crt_static_respected: true,
25 abi_return_struct_as_int: true,
26 emit_debug_gdb_scripts: false,
27 requires_uwtable: true,
28
29 .. Default::default()
30 }
31 }