ports/lang/rust/patches/patch-src_bootstrap_src_lib_rs

14 lines
527 B
Text

let us compilation choice to be honored.
https://github.com/rust-lang/rust/issues/39900
Index: src/bootstrap/src/lib.rs
--- src/bootstrap/src/lib.rs.orig
+++ src/bootstrap/src/lib.rs
@@ -1214,7 +1214,6 @@ Executed at: {executed_at}"#,
.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 C++ on macOS then we add a flag indicating that