]> git.proxmox.com Git - rustc.git/blob - src/librustc_target/spec/windows_msvc_base.rs
New upstream version 1.44.1+dfsg1
[rustc.git] / src / librustc_target / spec / windows_msvc_base.rs
1 use crate::spec::TargetOptions;
2
3 pub fn opts() -> TargetOptions {
4 let base = super::msvc_base::opts();
5
6 TargetOptions {
7 dynamic_linking: true,
8 dll_prefix: String::new(),
9 dll_suffix: ".dll".to_string(),
10 exe_suffix: ".exe".to_string(),
11 staticlib_prefix: String::new(),
12 staticlib_suffix: ".lib".to_string(),
13 target_family: Some("windows".to_string()),
14 crt_static_allows_dylibs: true,
15 crt_static_respected: true,
16 requires_uwtable: true,
17 // Currently we don't pass the /NODEFAULTLIB flag to the linker on MSVC
18 // as there's been trouble in the past of linking the C++ standard
19 // library required by LLVM. This likely needs to happen one day, but
20 // in general Windows is also a more controlled environment than
21 // Unix, so it's not necessarily as critical that this be implemented.
22 //
23 // Note that there are also some licensing worries about statically
24 // linking some libraries which require a specific agreement, so it may
25 // not ever be possible for us to pass this flag.
26 no_default_libraries: false,
27
28 ..base
29 }
30 }