File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -1996,15 +1996,13 @@ impl Build {
19961996 cmd. push_cc_arg ( "-fdata-sections" . into ( ) ) ;
19971997 }
19981998 // Disable generation of PIC on bare-metal for now: rust-lld doesn't support this yet
1999- if self . pic . unwrap_or_else (
2000- || {
2001- !target. contains ( "windows" )
2002- && !target. contains ( "-none-" )
2003- && !target. ends_with ( "-none" )
2004- && !target. contains ( "uefi" )
2005- && !Build :: is_wasi_target ( target)
2006- }
2007- ) {
1999+ if self . pic . unwrap_or_else ( || {
2000+ !target. contains ( "windows" )
2001+ && !target. contains ( "-none-" )
2002+ && !target. ends_with ( "-none" )
2003+ && !target. contains ( "uefi" )
2004+ && !Build :: is_wasi_target ( target)
2005+ } ) {
20082006 cmd. push_cc_arg ( "-fPIC" . into ( ) ) ;
20092007 // PLT only applies if code is compiled with PIC support,
20102008 // and only for ELF targets.
You can’t perform that action at this time.
0 commit comments