full changelog at https://blog.rust-lang.org/2017/11/22/Rust-1.22.html port changes: - switch to clang and libc++ (instead of egcc and estdc++) - use devel/llvm instead of the embedded llvm version - make i386 produce code for 'pentiumpro' instead of 'pentium4' so that ppl can use ripgrep on pentium II's (yay!) - use a hack (codegen-units=16) to fix memory pressure issues on i386. Might not work forever..... tested on i386 & amd64, went into an i386 bulk. all the hard work from semarie@
14 lines
657 B
Plaintext
14 lines
657 B
Plaintext
$OpenBSD: patch-src_bootstrap_lib_rs,v 1.8 2017/12/04 17:31:49 landry Exp $
|
|
Let us compilation choice to be honored.
|
|
Index: src/bootstrap/lib.rs
|
|
--- src/bootstrap/lib.rs.orig
|
|
+++ src/bootstrap/lib.rs
|
|
@@ -622,7 +622,6 @@ impl Build {
|
|
// cc-rs because the build scripts will determine that for themselves.
|
|
let mut base = self.cc[&target].0.args().iter()
|
|
.map(|s| s.to_string_lossy().into_owned())
|
|
- .filter(|s| !s.starts_with("-O") && !s.starts_with("/O"))
|
|
.collect::<Vec<_>>();
|
|
|
|
// If we're compiling on macOS then we add a few unconditional flags
|