Skip to content

Commit a885236

Browse files
authored
Do not set the -fPIC flag for Windows targets when using clang for CXX builds (#481)
1 parent 27ca8c2 commit a885236

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,7 @@ impl Build {
13741374
// Disable generation of PIC on bare-metal for now: rust-lld doesn't support this yet
13751375
if self
13761376
.pic
1377-
.unwrap_or(!target.contains("windows-gnu") && !target.contains("-none-"))
1377+
.unwrap_or(!target.contains("windows") && !target.contains("-none-"))
13781378
{
13791379
cmd.push_cc_arg("-fPIC".into());
13801380
// PLT only applies if code is compiled with PIC support,

0 commit comments

Comments
 (0)