From 698f8c2f01ea549d77d7dc3338a12e04c11057b9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:02:58 +0200 Subject: Adding upstream version 1.64.0+dfsg1. Signed-off-by: Daniel Baumann --- compiler/rustc_target/src/spec/msvc_base.rs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 compiler/rustc_target/src/spec/msvc_base.rs (limited to 'compiler/rustc_target/src/spec/msvc_base.rs') diff --git a/compiler/rustc_target/src/spec/msvc_base.rs b/compiler/rustc_target/src/spec/msvc_base.rs new file mode 100644 index 000000000..edb30b72b --- /dev/null +++ b/compiler/rustc_target/src/spec/msvc_base.rs @@ -0,0 +1,24 @@ +use crate::spec::{LinkerFlavor, LldFlavor, SplitDebuginfo, TargetOptions}; + +pub fn opts() -> TargetOptions { + // Suppress the verbose logo and authorship debugging output, which would needlessly + // clog any log files. + let pre_link_args = TargetOptions::link_args(LinkerFlavor::Msvc, &["/NOLOGO"]); + + TargetOptions { + linker_flavor: LinkerFlavor::Msvc, + is_like_windows: true, + is_like_msvc: true, + lld_flavor: LldFlavor::Link, + linker_is_gnu: false, + pre_link_args, + abi_return_struct_as_int: true, + emit_debug_gdb_scripts: false, + + // Currently this is the only supported method of debuginfo on MSVC + // where `*.pdb` files show up next to the final artifact. + split_debuginfo: SplitDebuginfo::Packed, + + ..Default::default() + } +} -- cgit v1.2.3