ports/lang/rust/patches/patch-src_bootstrap_src_lib_rs

15 lines
527 B
Text
Raw Permalink Normal View History

2024-03-24 02:17:26 +00:00
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
2024-09-19 05:52:57 +00:00
@@ -1214,7 +1214,6 @@ Executed at: {executed_at}"#,
2024-03-24 02:17:26 +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 C++ on macOS then we add a flag indicating that