File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed
compiler/rustc_codegen_llvm/src/back
tests/ui/rfcs/rfc-2627-raw-dylib Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -128,11 +128,7 @@ impl ArchiveBuilderBuilder for LlvmArchiveBuilderBuilder {
128128 is_direct_dependency : bool ,
129129 ) -> PathBuf {
130130 let name_suffix = if is_direct_dependency { "_imports" } else { "_imports_indirect" } ;
131- let output_path = {
132- let mut output_path: PathBuf = tmpdir. to_path_buf ( ) ;
133- output_path. push ( format ! ( "{lib_name}{name_suffix}" ) ) ;
134- output_path. with_extension ( "lib" )
135- } ;
131+ let output_path = tmpdir. join ( format ! ( "{lib_name}{name_suffix}.lib" ) ) ;
136132
137133 let target = & sess. target ;
138134 let mingw_gnu_toolchain = common:: is_mingw_gnu_toolchain ( target) ;
@@ -157,8 +153,7 @@ impl ArchiveBuilderBuilder for LlvmArchiveBuilderBuilder {
157153 // that loaded but crashed with an AV upon calling one of the imported
158154 // functions. Therefore, use binutils to create the import library instead,
159155 // by writing a .DEF file to the temp dir and calling binutils's dlltool.
160- let def_file_path =
161- tmpdir. join ( format ! ( "{lib_name}{name_suffix}" ) ) . with_extension ( "def" ) ;
156+ let def_file_path = tmpdir. join ( format ! ( "{lib_name}{name_suffix}.def" ) ) ;
162157
163158 let def_file_content = format ! (
164159 "EXPORTS\n {}" ,
Original file line number Diff line number Diff line change 33//@ needs-dlltool
44//@ compile-flags: --crate-type lib --emit link
55//@ normalize-stderr-test: "[^ ']*/dlltool.exe" -> "$$DLLTOOL"
6- //@ normalize-stderr-test: "[^ ]*/foo.def" -> "$$DEF_FILE"
7- //@ normalize-stderr-test: "[^ ]*/foo.lib" -> "$$LIB_FILE"
6+ //@ normalize-stderr-test: "[^ ]*/foo.dll_imports. def" -> "$$DEF_FILE"
7+ //@ normalize-stderr-test: "[^ ]*/foo.dll_imports. lib" -> "$$LIB_FILE"
88//@ normalize-stderr-test: "-m [^ ]*" -> "$$TARGET_MACHINE"
99//@ normalize-stderr-test: "-f [^ ]*" -> "$$ASM_FLAGS"
1010//@ normalize-stderr-test: "--temp-prefix [^ ]*/foo.dll" -> "$$TEMP_PREFIX"
You can’t perform that action at this time.
0 commit comments