]>
git.proxmox.com Git - rustc.git/blob - src/librustc_target/spec/windows_msvc_base.rs
1 use crate::spec
::TargetOptions
;
3 pub fn opts() -> TargetOptions
{
4 let base
= super::msvc_base
::opts();
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.
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,