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