Skip to content

Commit 7e9ede5

Browse files
committed
Fix LLVM build
1 parent 897e375 commit 7e9ede5

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
@@ -1052,7 +1052,7 @@ impl Build {
10521052
.args()
10531053
.iter()
10541054
.map(|s| s.to_string_lossy().into_owned())
1055-
.filter(|s| !s.starts_with("-O") && !s.starts_with("/O"))
1055+
.filter(|s| !s.starts_with("-O") && !s.starts_with("/O") && !s.starts_with("-static"))
10561056
.collect::<Vec<String>>();
10571057

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

0 commit comments

Comments
 (0)