Skip to content

Commit 83b8942

Browse files
committed
Fix LLVM build
1 parent 90743e7 commit 83b8942

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
@@ -1066,7 +1066,7 @@ impl Build {
10661066
.args()
10671067
.iter()
10681068
.map(|s| s.to_string_lossy().into_owned())
1069-
.filter(|s| !s.starts_with("-O") && !s.starts_with("/O"))
1069+
.filter(|s| !s.starts_with("-O") && !s.starts_with("/O") && !s.starts_with("-static"))
10701070
.collect::<Vec<String>>();
10711071

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

0 commit comments

Comments
 (0)