Skip to content

Commit e73d05b

Browse files
authored
Fix linking with llvm-lib (#1027)
Fix #1026
1 parent c9b0850 commit e73d05b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2472,7 +2472,7 @@ impl Build {
24722472
let target = self.get_target()?;
24732473

24742474
let (mut cmd, program, any_flags) = self.get_ar()?;
2475-
if target.contains("msvc") && !program.to_string_lossy().contains("llvm-") {
2475+
if target.contains("msvc") && !program.to_string_lossy().contains("llvm-ar") {
24762476
// NOTE: -out: here is an I/O flag, and so must be included even if $ARFLAGS/ar_flag is
24772477
// in use. -nologo on the other hand is just a regular flag, and one that we'll skip if
24782478
// the caller has explicitly dictated the flags they want. See

0 commit comments

Comments
 (0)