]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_target/src/spec/windows_msvc_base.rs
Auto merge of #97800 - pnkfelix:issue-97463-fix-aarch64-call-abi-does-not-zeroext...
[rust.git] / compiler / rustc_target / src / spec / windows_msvc_base.rs
1 use crate::spec::{cvs, TargetOptions};
2
3 pub fn opts() -> TargetOptions {
4     let base = super::msvc_base::opts();
5
6     TargetOptions {
7         os: "windows".into(),
8         env: "msvc".into(),
9         vendor: "pc".into(),
10         dynamic_linking: true,
11         dll_prefix: "".into(),
12         dll_suffix: ".dll".into(),
13         exe_suffix: ".exe".into(),
14         staticlib_prefix: "".into(),
15         staticlib_suffix: ".lib".into(),
16         families: cvs!["windows"],
17         crt_static_allows_dylibs: true,
18         crt_static_respected: true,
19         requires_uwtable: true,
20         // Currently we don't pass the /NODEFAULTLIB flag to the linker on MSVC
21         // as there's been trouble in the past of linking the C++ standard
22         // library required by LLVM. This likely needs to happen one day, but
23         // in general Windows is also a more controlled environment than
24         // Unix, so it's not necessarily as critical that this be implemented.
25         //
26         // Note that there are also some licensing worries about statically
27         // linking some libraries which require a specific agreement, so it may
28         // not ever be possible for us to pass this flag.
29         no_default_libraries: false,
30         has_thread_local: true,
31
32         ..base
33     }
34 }