1 use crate::spec::{DebuginfoKind, LinkerFlavor, Lld, 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(Lld::No), &["/NOLOGO"]);
10 linker_flavor: LinkerFlavor::Msvc(Lld::No),
11 is_like_windows: true,
14 abi_return_struct_as_int: true,
15 emit_debug_gdb_scripts: false,
17 // Currently this is the only supported method of debuginfo on MSVC
18 // where `*.pdb` files show up next to the final artifact.
19 split_debuginfo: SplitDebuginfo::Packed,
20 supported_split_debuginfo: Cow::Borrowed(&[SplitDebuginfo::Packed]),
21 debuginfo_kind: DebuginfoKind::Pdb,