comparison lang/rust/patch-rust.patch @ 1176:e45b5d1810ab

lang/rust: initial import, closes #1097
author David Demelier <markand@malikania.fr>
date Wed, 23 Oct 2019 07:10:36 +0200
parents
children
comparison
equal deleted inserted replaced
1175:944780161c16 1176:e45b5d1810ab
1 $OpenBSD: patch-src_bootstrap_lib_rs,v 1.24 2019/09/29 08:23:17 semarie Exp $
2 let us compilation choice to be honored.
3 https://github.com/rust-lang/rust/issues/39900
4 Index: src/bootstrap/lib.rs
5 --- src/bootstrap/lib.rs.orig
6 +++ src/bootstrap/lib.rs
7 @@ -104,7 +104,7 @@
8 //! also check out the `src/bootstrap/README.md` file for more information.
9
10 // NO-RUSTC-WRAPPER
11 -#![deny(warnings, rust_2018_idioms, unused_lifetimes)]
12 +#![deny(rust_2018_idioms, unused_lifetimes)]
13
14 #![feature(core_intrinsics)]
15 #![feature(drain_filter)]
16 @@ -768,7 +768,6 @@ impl Build {
17 // cc-rs because the build scripts will determine that for themselves.
18 let mut base = self.cc[&target].args().iter()
19 .map(|s| s.to_string_lossy().into_owned())
20 - .filter(|s| !s.starts_with("-O") && !s.starts_with("/O"))
21 .collect::<Vec<String>>();
22
23 // If we're compiling on macOS then we add a few unconditional flags