1 use crate::spec::{DebuginfoKind, LinkerFlavor, LldFlavor, SplitDebuginfo, TargetOptions};
4 pub fn opts() -> TargetOptions {
5 // Suppress the verbose logo and authorship debugging output, which would needlessly
7 let pre_link_args = TargetOptions::link_args(LinkerFlavor::Msvc, &["/NOLOGO"]);
10 linker_flavor: LinkerFlavor::Msvc,
11 is_like_windows: true,
13 lld_flavor: LldFlavor::Link,
16 abi_return_struct_as_int: true,
17 emit_debug_gdb_scripts: false,
19 // Currently this is the only supported method of debuginfo on MSVC
20 // where `*.pdb` files show up next to the final artifact.
21 split_debuginfo: SplitDebuginfo::Packed,
22 supported_split_debuginfo: Cow::Borrowed(&[SplitDebuginfo::Packed]),
23 debuginfo_kind: DebuginfoKind::Pdb,