File tree 1 file changed +3
-13
lines changed
1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -287,10 +287,6 @@ fn main() {
287
287
cmd. arg ( "-C" ) . arg ( "target-feature=-crt-static" ) ;
288
288
}
289
289
}
290
-
291
- if let Ok ( map) = env:: var ( "RUSTC_DEBUGINFO_MAP" ) {
292
- cmd. arg ( "--remap-path-prefix" ) . arg ( & map) ;
293
- }
294
290
} else {
295
291
// Override linker if necessary.
296
292
if let Ok ( host_linker) = env:: var ( "RUSTC_HOST_LINKER" ) {
@@ -305,16 +301,10 @@ fn main() {
305
301
cmd. arg ( "-C" ) . arg ( "target-feature=-crt-static" ) ;
306
302
}
307
303
}
304
+ }
308
305
309
- let crate_type = args. windows ( 2 )
310
- . find ( |w| & * w[ 0 ] == "--crate-type" )
311
- . and_then ( |w| w[ 1 ] . to_str ( ) ) ;
312
-
313
- if let Some ( "proc-macro" ) = crate_type {
314
- if let Ok ( map) = env:: var ( "RUSTC_DEBUGINFO_MAP" ) {
315
- cmd. arg ( "--remap-path-prefix" ) . arg ( & map) ;
316
- }
317
- }
306
+ if let Ok ( map) = env:: var ( "RUSTC_DEBUGINFO_MAP" ) {
307
+ cmd. arg ( "--remap-path-prefix" ) . arg ( & map) ;
318
308
}
319
309
320
310
// Force all crates compiled by this compiler to (a) be unstable and (b)
You can’t perform that action at this time.
0 commit comments