Skip to content

Commit d29af37

Browse files
committed
Merge branch 'master' of https://github.com/rust-lang/rust into gen
2 parents 7c5780b + e266888 commit d29af37

File tree

210 files changed

+1503
-879
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

210 files changed

+1503
-879
lines changed

appveyor.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ install:
145145
# - set PATH=%PATH%;%CD% -- this already happens above for sccache
146146

147147
# Install InnoSetup to get `iscc` used to produce installers
148-
- appveyor-retry choco install -y InnoSetup
148+
- appveyor-retry appveyor DownloadFile https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror/2017-08-22-is.exe
149+
- 2017-08-22-is.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-
149150
- set PATH="C:\Program Files (x86)\Inno Setup 5";%PATH%
150151

151152
# Help debug some handle issues on AppVeyor

src/Cargo.lock

Lines changed: 135 additions & 103 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ members = [
3232
"tools/rls/test_data/multiple_bins",
3333
"tools/rls/test_data/bin_lib",
3434
"tools/rls/test_data/reformat_with_range",
35+
"tools/rls/test_data/find_impls",
36+
"tools/rls/test_data/infer_bin",
37+
"tools/rls/test_data/infer_custom_bin",
38+
"tools/rls/test_data/infer_lib",
39+
"tools/rls/test_data/omit_init_build",
3540
]
3641

3742
# Curiously, compiletest will segfault if compiled with opt-level=3 on 64-bit

src/bootstrap/sanity.rs

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,27 @@ pub fn check(build: &mut Build) {
9393
}
9494

9595
// Ninja is currently only used for LLVM itself.
96-
// Some Linux distros rename `ninja` to `ninja-build`.
97-
// CMake can work with either binary name.
98-
if building_llvm && build.config.ninja && cmd_finder.maybe_have("ninja-build").is_none() {
99-
cmd_finder.must_have("ninja");
96+
if building_llvm {
97+
if build.config.ninja {
98+
// Some Linux distros rename `ninja` to `ninja-build`.
99+
// CMake can work with either binary name.
100+
if cmd_finder.maybe_have("ninja-build").is_none() {
101+
cmd_finder.must_have("ninja");
102+
}
103+
}
104+
105+
// If ninja isn't enabled but we're building for MSVC then we try
106+
// doubly hard to enable it. It was realized in #43767 that the msbuild
107+
// CMake generator for MSVC doesn't respect configuration options like
108+
// disabling LLVM assertions, which can often be quite important!
109+
//
110+
// In these cases we automatically enable Ninja if we find it in the
111+
// environment.
112+
if !build.config.ninja && build.config.build.contains("msvc") {
113+
if cmd_finder.maybe_have("ninja").is_some() {
114+
build.config.ninja = true;
115+
}
116+
}
100117
}
101118

102119
build.config.python = build.config.python.take().map(|p| cmd_finder.must_have(p))

src/ci/docker/arm-android/Dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ FROM ubuntu:16.04
33
COPY scripts/android-base-apt-get.sh /scripts/
44
RUN sh /scripts/android-base-apt-get.sh
55

6-
COPY scripts/dumb-init.sh /scripts/
7-
RUN sh /scripts/dumb-init.sh
8-
96
COPY scripts/android-ndk.sh /scripts/
107
RUN . /scripts/android-ndk.sh && \
118
download_and_make_toolchain android-ndk-r13b-linux-x86_64.zip arm 9
@@ -38,4 +35,4 @@ COPY scripts/sccache.sh /scripts/
3835
RUN sh /scripts/sccache.sh
3936

4037
COPY scripts/android-start-emulator.sh /scripts/
41-
ENTRYPOINT ["/usr/bin/dumb-init", "--", "/scripts/android-start-emulator.sh"]
38+
ENTRYPOINT ["/scripts/android-start-emulator.sh"]

src/ci/docker/armhf-gnu/Dockerfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,9 @@ RUN arm-linux-gnueabihf-gcc addentropy.c -o rootfs/addentropy -static
7373
# TODO: What is this?!
7474
RUN curl -O http://ftp.nl.debian.org/debian/dists/jessie/main/installer-armhf/current/images/device-tree/vexpress-v2p-ca15-tc1.dtb
7575

76-
COPY scripts/dumb-init.sh /scripts/
77-
RUN sh /scripts/dumb-init.sh
78-
7976
COPY scripts/sccache.sh /scripts/
8077
RUN sh /scripts/sccache.sh
8178

82-
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
83-
8479
ENV RUST_CONFIGURE_ARGS \
8580
--target=arm-unknown-linux-gnueabihf \
8681
--qemu-armhf-rootfs=/tmp/rootfs

src/ci/docker/asmjs/Dockerfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1313
gdb \
1414
xz-utils
1515

16-
COPY scripts/dumb-init.sh /scripts/
17-
RUN sh /scripts/dumb-init.sh
18-
1916
COPY scripts/emscripten.sh /scripts/
2017
RUN bash /scripts/emscripten.sh
2118

@@ -35,5 +32,3 @@ ENV SCRIPT python2.7 ../x.py test --target $TARGETS
3532

3633
COPY scripts/sccache.sh /scripts/
3734
RUN sh /scripts/sccache.sh
38-
39-
ENTRYPOINT ["/usr/bin/dumb-init", "--"]

src/ci/docker/cross/Dockerfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2121
libssl-dev \
2222
pkg-config
2323

24-
COPY scripts/dumb-init.sh /scripts/
25-
RUN sh /scripts/dumb-init.sh
26-
2724
WORKDIR /tmp
2825

2926
COPY cross/build-rumprun.sh /tmp/
@@ -71,5 +68,3 @@ ENV SCRIPT python2.7 ../x.py dist --target $TARGETS
7168
# sccache
7269
COPY scripts/sccache.sh /scripts/
7370
RUN sh /scripts/sccache.sh
74-
75-
ENTRYPOINT ["/usr/bin/dumb-init", "--"]

src/ci/docker/disabled/aarch64-gnu/Dockerfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,9 @@ RUN chmod +x rootfs/etc/init.d/rcS
7070
COPY scripts/qemu-bare-bones-addentropy.c /tmp/addentropy.c
7171
RUN aarch64-linux-gnu-gcc addentropy.c -o rootfs/addentropy -static
7272

73-
COPY scripts/dumb-init.sh /scripts/
74-
RUN sh /scripts/dumb-init.sh
75-
7673
COPY scripts/sccache.sh /scripts/
7774
RUN sh /scripts/sccache.sh
7875

79-
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
80-
8176
ENV RUST_CONFIGURE_ARGS \
8277
--target=aarch64-unknown-linux-gnu \
8378
--qemu-aarch64-rootfs=/tmp/rootfs

src/ci/docker/disabled/dist-aarch64-android/Dockerfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ FROM ubuntu:16.04
33
COPY scripts/android-base-apt-get.sh /scripts/
44
RUN sh /scripts/android-base-apt-get.sh
55

6-
COPY scripts/dumb-init.sh /scripts/
7-
RUN sh /scripts/dumb-init.sh
8-
96
COPY scripts/android-ndk.sh /scripts/
107
RUN . /scripts/android-ndk.sh && \
118
download_and_make_toolchain android-ndk-r13b-linux-x86_64.zip arm64 21
@@ -28,5 +25,3 @@ ENV SCRIPT python2.7 ../x.py dist --target $HOSTS --host $HOSTS
2825

2926
COPY scripts/sccache.sh /scripts/
3027
RUN sh /scripts/sccache.sh
31-
32-
ENTRYPOINT ["/usr/bin/dumb-init", "--"]

0 commit comments

Comments
 (0)