File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2006,8 +2006,8 @@ impl Build {
2006
2006
cmd. push_cc_arg ( "-fPIC" . into ( ) ) ;
2007
2007
// PLT only applies if code is compiled with PIC support,
2008
2008
// and only for ELF targets.
2009
- if target. os == "linux"
2010
- || target . os == "android" && !self . use_plt . unwrap_or ( true )
2009
+ if ( target. os == "linux" || target . os == "android" )
2010
+ && !self . use_plt . unwrap_or ( true )
2011
2011
{
2012
2012
cmd. push_cc_arg ( "-fno-plt" . into ( ) ) ;
2013
2013
}
@@ -2023,7 +2023,7 @@ impl Build {
2023
2023
) ;
2024
2024
}
2025
2025
2026
- // FIXME(madsmtm): Put `threads` as part of the ABI ?
2026
+ // FIXME(madsmtm): Read from `target_features` instead ?
2027
2027
if raw_target. contains ( "threads" ) {
2028
2028
cmd. push_cc_arg ( "-pthread" . into ( ) ) ;
2029
2029
}
You can’t perform that action at this time.
0 commit comments