Skip to content

Rollup of 7 pull requests #48921

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 21 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
7e346df
Impl Integer methods for Wrapping
Phlosioneer Mar 7, 2018
55a2fdf
travis: Upgrade OSX builders
alexcrichton Mar 6, 2018
d14f07e
bootstrap: pass datadir to rust-installer
Keruspe Feb 17, 2018
02aa39f
Make Wrapping::pow use wrapping_pow, add example
Phlosioneer Mar 8, 2018
910d855
Fix trailing whitespace
Phlosioneer Mar 8, 2018
1191510
Remove ONLY_BUILD_TARGETS.
Mark-Simulacrum Feb 11, 2018
1c8f3b0
Remove ONLY_BUILD.
Mark-Simulacrum Feb 11, 2018
c8edb36
Print out the sysroot and libdir on verbose builds.
Mark-Simulacrum Feb 15, 2018
9cfc73c
Deny warnings
Mark-Simulacrum Feb 16, 2018
29a8529
Refactor run_host_only to have the proper effect.
Mark-Simulacrum Feb 11, 2018
a63bf3b
Add missing urls
GuillaumeGomez Mar 9, 2018
c1a73d2
tidy: Add a check for stray `.stderr` and `.stdout` files in UI test …
petrochenkov Mar 9, 2018
b8cd6e5
Prevents the crash log printer on macOS from crashing the entire job.
kennytm Mar 10, 2018
c67e553
Print /proc/cpuinfo and /proc/meminfo before starting to build.
kennytm Mar 10, 2018
9f313b1
Rollup merge of #48295 - Keruspe:master, r=alexcrichton
kennytm Mar 10, 2018
c7af197
Rollup merge of #48599 - Mark-Simulacrum:rustbuild-updates-step-1, r=…
kennytm Mar 10, 2018
0a0c28f
Rollup merge of #48799 - alexcrichton:more-osx-cores, r=Mark-Simulacrum
kennytm Mar 10, 2018
de827e5
Rollup merge of #48810 - Phlosioneer:32463-impl-integer-for-wrapping,…
kennytm Mar 10, 2018
4545219
Rollup merge of #48877 - GuillaumeGomez:vec-missing-links, r=QuietMis…
kennytm Mar 10, 2018
f0789c6
Rollup merge of #48880 - petrochenkov:badstderr, r=kennytm
kennytm Mar 10, 2018
5dc418a
Rollup merge of #48907 - kennytm:minor-ci-stuff, r=alexcrichton
kennytm Mar 10, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
travis: Upgrade OSX builders
This upgrades the OSX builders to the `xcode9.3-moar` image which has 3 cores as
opposed to the 2 that our builders currently have. Should help make those OSX
builds a bit speedier!
  • Loading branch information
alexcrichton committed Mar 7, 2018
commit 55a2fdf2cf5408edba890ad1702462414899f40b
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ matrix:
NO_LLVM_ASSERTIONS=1
NO_DEBUG_ASSERTIONS=1
os: osx
osx_image: xcode9.2
osx_image: xcode9.3-moar
if: branch = auto

- env: >
Expand All @@ -70,7 +70,7 @@ matrix:
NO_LLVM_ASSERTIONS=1
NO_DEBUG_ASSERTIONS=1
os: osx
osx_image: xcode9.2
osx_image: xcode9.3-moar
if: branch = auto

# OSX builders producing releases. These do not run the full test suite and
Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/lexical-scope-with-macro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
// except according to those terms.

// min-lldb-version: 310
// ignore-macos FIXME #48807

// compile-flags:-g -Zdebug-macros

Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make/long-linker-command-lines/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-include ../tools.mk

all:
$(RUSTC) foo.rs -g
$(RUSTC) foo.rs -g -O
RUSTC="$(RUSTC_ORIGINAL)" $(call RUN,foo)
28 changes: 12 additions & 16 deletions src/test/run-make/reproducible-build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,27 @@ all: \

smoke:
rm -rf $(TMPDIR) && mkdir $(TMPDIR)
$(RUSTC) linker.rs -O
$(RUSTC) reproducible-build-aux.rs
$(RUSTC) reproducible-build.rs -o"$(TMPDIR)/reproducible-build1"
$(RUSTC) reproducible-build.rs -o"$(TMPDIR)/reproducible-build2"
$(B2)
nm "$(TMPDIR)/reproducible-build1" | sort > "$(TMPDIR)/reproducible-build1.nm"
nm "$(TMPDIR)/reproducible-build2" | sort > "$(TMPDIR)/reproducible-build2.nm"
cmp "$(TMPDIR)/reproducible-build1.nm" "$(TMPDIR)/reproducible-build2.nm" || exit 1
$(RUSTC) reproducible-build.rs -C linker=$(call RUN_BINFILE,linker)
$(RUSTC) reproducible-build.rs -C linker=$(call RUN_BINFILE,linker)
diff -u "$(TMPDIR)/linker-arguments1" "$(TMPDIR)/linker-arguments2"

debug:
rm -rf $(TMPDIR) && mkdir $(TMPDIR)
$(RUSTC) linker.rs -O
$(RUSTC) reproducible-build-aux.rs -g
$(RUSTC) reproducible-build.rs -o"$(TMPDIR)/reproducible-build1" -g
$(RUSTC) reproducible-build.rs -o"$(TMPDIR)/reproducible-build2" -g
nm "$(TMPDIR)/reproducible-build1" | sort > "$(TMPDIR)/reproducible-build1-debug.nm"
nm "$(TMPDIR)/reproducible-build2" | sort > "$(TMPDIR)/reproducible-build2-debug.nm"
cmp "$(TMPDIR)/reproducible-build1-debug.nm" "$(TMPDIR)/reproducible-build2-debug.nm" || exit 1
$(RUSTC) reproducible-build.rs -C linker=$(call RUN_BINFILE,linker) -g
$(RUSTC) reproducible-build.rs -C linker=$(call RUN_BINFILE,linker) -g
diff -u "$(TMPDIR)/linker-arguments1" "$(TMPDIR)/linker-arguments2"

opt:
rm -rf $(TMPDIR) && mkdir $(TMPDIR)
$(RUSTC) linker.rs -O
$(RUSTC) reproducible-build-aux.rs -O
$(RUSTC) reproducible-build.rs -o"$(TMPDIR)/reproducible-build1" -O
$(RUSTC) reproducible-build.rs -o"$(TMPDIR)/reproducible-build2" -O
nm "$(TMPDIR)/reproducible-build1" | sort > "$(TMPDIR)/reproducible-build1-opt.nm"
nm "$(TMPDIR)/reproducible-build2" | sort > "$(TMPDIR)/reproducible-build2-opt.nm"
cmp "$(TMPDIR)/reproducible-build1-opt.nm" "$(TMPDIR)/reproducible-build2-opt.nm" || exit 1
$(RUSTC) reproducible-build.rs -C linker=$(call RUN_BINFILE,linker) -O
$(RUSTC) reproducible-build.rs -C linker=$(call RUN_BINFILE,linker) -O
diff -u "$(TMPDIR)/linker-arguments1" "$(TMPDIR)/linker-arguments2"

link_paths:
rm -rf $(TMPDIR) && mkdir $(TMPDIR)
Expand Down
54 changes: 54 additions & 0 deletions src/test/run-make/reproducible-build/linker.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use std::env;
use std::path::Path;
use std::fs::File;
use std::io::{Read, Write};

fn main() {
let mut dst = env::current_exe().unwrap();
dst.pop();
dst.push("linker-arguments1");
if dst.exists() {
dst.pop();
dst.push("linker-arguments2");
assert!(!dst.exists());
}

let mut out = String::new();
for arg in env::args().skip(1) {
let path = Path::new(&arg);
if !path.is_file() {
out.push_str(&arg);
out.push_str("\n");
continue
}

let mut contents = Vec::new();
File::open(path).unwrap().read_to_end(&mut contents).unwrap();

out.push_str(&format!("{}: {}\n", arg, hash(&contents)));
}

File::create(dst).unwrap().write_all(out.as_bytes()).unwrap();
}

// fnv hash for now
fn hash(contents: &[u8]) -> u64 {
let mut hash = 0xcbf29ce484222325;

for byte in contents {
hash = hash ^ (*byte as u64);
hash = hash.wrapping_mul(0x100000001b3);
}

hash
}