pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/rust rust: don't filter out optimization flags. i...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4d5f3ef0deab
branches:  trunk
changeset: 372431:4d5f3ef0deab
user:      maya <maya%pkgsrc.org@localhost>
date:      Thu Dec 07 12:12:44 2017 +0000

description:
rust: don't filter out optimization flags. improves build time.

from a commit by semarie@openbsd

diffstat:

 lang/rust/distinfo                           |   3 ++-
 lang/rust/patches/patch-src_bootstrap_lib.rs |  14 ++++++++++++++
 2 files changed, 16 insertions(+), 1 deletions(-)

diffs (35 lines):

diff -r 1fbd32d8117d -r 4d5f3ef0deab lang/rust/distinfo
--- a/lang/rust/distinfo        Thu Dec 07 11:55:06 2017 +0000
+++ b/lang/rust/distinfo        Thu Dec 07 12:12:44 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.11 2017/11/28 00:07:27 ryoon Exp $
+$NetBSD: distinfo,v 1.12 2017/12/07 12:12:44 maya Exp $
 
 SHA1 (rust-1.21.0-i686-apple-darwin.tar.gz) = 9e01c8800419db1de2c31dee06494194ab843b7d
 RMD160 (rust-1.21.0-i686-apple-darwin.tar.gz) = 0f5f73fb5dfca510afd9acaf755893901a3180ca
@@ -53,6 +53,7 @@
 SHA512 (rustc-1.22.1-src.tar.gz) = cb1f0f5643c5244225255030bef974eb8d642c9a9f04d3a1ba44157b3848ca2ee0c1b96160c19e6e0e110d0065836f99936f00678690840aa8f34e22ecece874
 Size (rustc-1.22.1-src.tar.gz) = 54935620 bytes
 SHA1 (patch-src_bootstrap_bin_rustc.rs) = 617cc7ae52d92fdf80af0aff169c17a9cec4d67c
+SHA1 (patch-src_bootstrap_lib.rs) = b69068545d489b448705c79f854e2f73bda53b1e
 SHA1 (patch-src_libbacktrace_configure) = b2c1e9b93a99408aad42ab9f1af27704cc81bdd8
 SHA1 (patch-src_libstd_build.rs) = 32dad8a474300f9f37bce8b92acca762cf8cc4ab
 SHA1 (patch-src_llvm_cmake_modules_AddLLVM.cmake) = 282d97cce8d01cfefe565185d4999c2db9ccc13f
diff -r 1fbd32d8117d -r 4d5f3ef0deab lang/rust/patches/patch-src_bootstrap_lib.rs
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/rust/patches/patch-src_bootstrap_lib.rs      Thu Dec 07 12:12:44 2017 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_bootstrap_lib.rs,v 1.1 2017/12/07 12:12:44 maya Exp $
+
+Don't filter out optimization flags.
+
+--- src/bootstrap/lib.rs.orig  2017-11-22 21:33:00.000000000 +0000
++++ 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



Home | Main Index | Thread Index | Old Index