patch-src_bootstrap_lib_rs 677 B

12345678910111213
  1. $OpenBSD: patch-src_bootstrap_lib_rs,v 1.3 2017/05/05 11:40:29 landry Exp $
  2. Let us compilation choice to be honored.
  3. --- src/bootstrap/lib.rs.orig Mon Apr 24 20:53:45 2017
  4. +++ src/bootstrap/lib.rs Wed Apr 26 08:43:00 2017
  5. @@ -848,7 +848,6 @@ impl Build {
  6. // gcc-rs because the build scripts will determine that for themselves.
  7. let mut base = self.cc[target].0.args().iter()
  8. .map(|s| s.to_string_lossy().into_owned())
  9. - .filter(|s| !s.starts_with("-O") && !s.starts_with("/O"))
  10. .collect::<Vec<_>>();
  11. // If we're compiling on OSX then we add a few unconditional flags