We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 897e375 commit 7e9ede5Copy full SHA for 7e9ede5
src/bootstrap/lib.rs
@@ -1052,7 +1052,7 @@ impl Build {
1052
.args()
1053
.iter()
1054
.map(|s| s.to_string_lossy().into_owned())
1055
- .filter(|s| !s.starts_with("-O") && !s.starts_with("/O"))
+ .filter(|s| !s.starts_with("-O") && !s.starts_with("/O") && !s.starts_with("-static"))
1056
.collect::<Vec<String>>();
1057
1058
// If we're compiling on macOS then we add a few unconditional flags
0 commit comments