We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8da1265 commit e7e5b67Copy full SHA for e7e5b67
src/lib.rs
@@ -2006,8 +2006,8 @@ impl Build {
2006
cmd.push_cc_arg("-fPIC".into());
2007
// PLT only applies if code is compiled with PIC support,
2008
// and only for ELF targets.
2009
- if target.os == "linux"
2010
- || target.os == "android" && !self.use_plt.unwrap_or(true)
+ if (target.os == "linux" || target.os == "android")
+ && !self.use_plt.unwrap_or(true)
2011
{
2012
cmd.push_cc_arg("-fno-plt".into());
2013
}
@@ -2023,7 +2023,7 @@ impl Build {
2023
);
2024
2025
2026
- // FIXME(madsmtm): Put `threads` as part of the ABI?
+ // FIXME(madsmtm): Read from `target_features` instead?
2027
if raw_target.contains("threads") {
2028
cmd.push_cc_arg("-pthread".into());
2029
0 commit comments