ports/lang/rust/patches/patch-src_bootstrap_lib_rs

15 lines
496 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
let us compilation choice to be honored.
https://github.com/rust-lang/rust/issues/39900
Index: src/bootstrap/lib.rs
--- src/bootstrap/lib.rs.orig
+++ src/bootstrap/lib.rs
2023-08-28 01:43:33 +00:00
@@ -1142,7 +1142,6 @@ impl Build {
2023-08-16 22:26:55 +00:00
.args()
.iter()
.map(|s| s.to_string_lossy().into_owned())
- .filter(|s| !s.starts_with("-O") && !s.starts_with("/O"))
.collect::<Vec<String>>();
// If we're compiling on macOS then we add a few unconditional flags