openbsd-ports/lang/rust/patches/patch-src_bootstrap_dist_rs
landry 97894fe4c9 Update to rust 1.22.1.
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@
2017-12-04 17:31:49 +00:00

19 lines
650 B
Plaintext

$OpenBSD: patch-src_bootstrap_dist_rs,v 1.1 2017/12/04 17:31:49 landry Exp $
Stop in the middle of "Extended" step: we have generated tarballs for rustc,
rust-std and cargo: it is enough and generating a combined tarball in memory
requires too much RAM for i386
Index: src/bootstrap/dist.rs
--- src/bootstrap/dist.rs.orig
+++ src/bootstrap/dist.rs
@@ -1182,6 +1182,10 @@ impl Step for Extended {
target,
});
+ if target.contains("openbsd") {
+ return;
+ }
+
let tmp = tmpdir(build);
let overlay = tmp.join("extended-overlay");
let etc = build.src.join("src/etc/installer");