1 use crate::spec::TargetOptions;
3 pub fn opts() -> TargetOptions {
4 let base = super::msvc_base::opts();
7 os: "windows".to_string(),
8 env: "msvc".to_string(),
9 vendor: "pc".to_string(),
10 dynamic_linking: true,
11 dll_prefix: String::new(),
12 dll_suffix: ".dll".to_string(),
13 exe_suffix: ".exe".to_string(),
14 staticlib_prefix: String::new(),
15 staticlib_suffix: ".lib".to_string(),
16 os_family: Some("windows".to_string()),
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,