We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f21d635 commit c396e36Copy full SHA for c396e36
compiler/rustc_codegen_ssa/src/back/archive.rs
@@ -108,7 +108,11 @@ pub trait ArchiveBuilderBuilder {
108
&exports,
109
machine,
110
!sess.target.is_like_msvc,
111
- /*comdat=*/ true,
+ // Tell the import library writer to make `.idata$3` a COMDAT section.
112
+ // This prevents duplicate symbol errors when using /WHOLEARCHIVE
113
+ // to link a staticlib with the MSVC linker.
114
+ // See #129020
115
+ true,
116
) {
117
sess.dcx()
118
.emit_fatal(ErrorCreatingImportLibrary { lib_name, error: error.to_string() });
0 commit comments