File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
compiler/rustc_codegen_llvm/src/back Expand file tree Collapse file tree 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 {
127127 is_direct_dependency : bool ,
128128 ) -> PathBuf {
129129 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" ) ) ;
135131
136132 let target = & sess. target ;
137133 let mingw_gnu_toolchain = common:: is_mingw_gnu_toolchain ( target) ;
@@ -157,7 +153,7 @@ impl ArchiveBuilderBuilder for LlvmArchiveBuilderBuilder {
157153 // functions. Therefore, use binutils to create the import library instead,
158154 // by writing a .DEF file to the temp dir and calling binutils's dlltool.
159155 let def_file_path =
160- tmpdir. join ( format ! ( "{lib_name}{name_suffix}" ) ) . with_extension ( " def") ;
156+ tmpdir. join ( format ! ( "{lib_name}{name_suffix}. def" ) ) ;
161157
162158 let def_file_content = format ! (
163159 "EXPORTS\n {}" ,
You can’t perform that action at this time.
0 commit comments