File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -232,13 +232,8 @@ fn main() {
232
232
}
233
233
}
234
234
235
- if let Ok ( s) = env:: var ( "RUSTC_CRT_STATIC" ) {
236
- if s == "true" {
237
- cmd. arg ( "-C" ) . arg ( "target-feature=+crt-static" ) ;
238
- }
239
- if s == "false" {
240
- cmd. arg ( "-C" ) . arg ( "target-feature=-crt-static" ) ;
241
- }
235
+ if let Ok ( map) = env:: var ( "RUSTC_DEBUGINFO_MAP" ) {
236
+ cmd. arg ( "--remap-path-prefix" ) . arg ( & map) ;
242
237
}
243
238
} else {
244
239
// Override linker if necessary.
Original file line number Diff line number Diff line change @@ -945,7 +945,11 @@ impl<'a> Builder<'a> {
945
945
}
946
946
947
947
if let Some ( x) = self . crt_static ( target) {
948
- cargo. env ( "RUSTC_CRT_STATIC" , x. to_string ( ) ) ;
948
+ if x {
949
+ rustflags. arg ( "-Ctarget-feature=+crt-static" ) ;
950
+ } else {
951
+ rustflags. arg ( "-Ctarget-feature=-crt-static" ) ;
952
+ }
949
953
}
950
954
951
955
if let Some ( x) = self . crt_static ( compiler. host ) {
You can’t perform that action at this time.
0 commit comments