File tree 1 file changed +2
-3
lines changed
compiler/rustc_codegen_llvm/src/back
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -129,8 +129,7 @@ impl ArchiveBuilderBuilder for LlvmArchiveBuilderBuilder {
129
129
let name_suffix = if is_direct_dependency { "_imports" } else { "_imports_indirect" } ;
130
130
let output_path = {
131
131
let mut output_path: PathBuf = tmpdir. to_path_buf ( ) ;
132
- output_path. push ( format ! ( "{lib_name}{name_suffix}" ) ) ;
133
- output_path. with_extension ( "lib" )
132
+ output_path. push ( format ! ( "{lib_name}{name_suffix}.lib" ) ) ;
134
133
} ;
135
134
136
135
let target = & sess. target ;
@@ -157,7 +156,7 @@ impl ArchiveBuilderBuilder for LlvmArchiveBuilderBuilder {
157
156
// functions. Therefore, use binutils to create the import library instead,
158
157
// by writing a .DEF file to the temp dir and calling binutils's dlltool.
159
158
let def_file_path =
160
- tmpdir. join ( format ! ( "{lib_name}{name_suffix}" ) ) . with_extension ( " def") ;
159
+ tmpdir. join ( format ! ( "{lib_name}{name_suffix}. def" ) ) ;
161
160
162
161
let def_file_content = format ! (
163
162
"EXPORTS\n {}" ,
You can’t perform that action at this time.
0 commit comments