1 use crate::spec::{cvs, TargetOptions};
3 pub fn opts() -> TargetOptions {
4 let base = super::msvc_base::opts();
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.
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,