Skip to content

Commit 2bc2838

Browse files
committed
Fix LLVM build
1 parent d5a82bb commit 2bc2838

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,7 @@ impl Build {
10791079
.args()
10801080
.iter()
10811081
.map(|s| s.to_string_lossy().into_owned())
1082-
.filter(|s| !s.starts_with("-O") && !s.starts_with("/O"))
1082+
.filter(|s| !s.starts_with("-O") && !s.starts_with("/O") && !s.starts_with("-static"))
10831083
.collect::<Vec<String>>();
10841084

10851085
// If we're compiling on macOS then we add a few unconditional flags

0 commit comments

Comments
 (0)