Skip to content

Commit e7e5b67

Browse files
committed
Properly match previous behaviour
1 parent 8da1265 commit e7e5b67

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2006,8 +2006,8 @@ impl Build {
20062006
cmd.push_cc_arg("-fPIC".into());
20072007
// PLT only applies if code is compiled with PIC support,
20082008
// 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)
20112011
{
20122012
cmd.push_cc_arg("-fno-plt".into());
20132013
}
@@ -2023,7 +2023,7 @@ impl Build {
20232023
);
20242024
}
20252025

2026-
// FIXME(madsmtm): Put `threads` as part of the ABI?
2026+
// FIXME(madsmtm): Read from `target_features` instead?
20272027
if raw_target.contains("threads") {
20282028
cmd.push_cc_arg("-pthread".into());
20292029
}

0 commit comments

Comments
 (0)