File tree 1 file changed +8
-0
lines changed
compiler/rustc_codegen_llvm/src/back
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,12 @@ impl ArchiveBuilderBuilder for LlvmArchiveBuilderBuilder {
183
183
// able to control the *exact* spelling of each of the symbols that are being imported:
184
184
// hence we don't want `dlltool` adding leading underscores automatically.
185
185
let dlltool = find_binutils_dlltool ( sess) ;
186
+ let temp_prefix = {
187
+ let mut path = PathBuf :: from ( & output_path) ;
188
+ path. pop ( ) ;
189
+ path. push ( lib_name) ;
190
+ path
191
+ } ;
186
192
let result = std:: process:: Command :: new ( dlltool)
187
193
. args ( [
188
194
"-d" ,
@@ -192,6 +198,8 @@ impl ArchiveBuilderBuilder for LlvmArchiveBuilderBuilder {
192
198
"-l" ,
193
199
output_path. to_str ( ) . unwrap ( ) ,
194
200
"--no-leading-underscore" ,
201
+ "--temp-prefix" ,
202
+ temp_prefix. to_str ( ) . unwrap ( ) ,
195
203
] )
196
204
. output ( ) ;
197
205
You can’t perform that action at this time.
0 commit comments