Skip to content

Commit 7b86b54

Browse files
authored
Fix cargo fmt
1 parent c1f07fc commit 7b86b54

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/lib.rs

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)