mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
Enforce Python 3 as much as possible
This commit is contained in:
parent
42abbd8878
commit
38eb369fa4
@ -27,7 +27,7 @@ or reading the [rustc dev guide][rustcguidebuild].
|
|||||||
1. Make sure you have installed the dependencies:
|
1. Make sure you have installed the dependencies:
|
||||||
|
|
||||||
* `g++` 5.1 or later or `clang++` 3.5 or later
|
* `g++` 5.1 or later or `clang++` 3.5 or later
|
||||||
* `python` 2.7 (but not 3.x)
|
* `python` 3 or 2.7
|
||||||
* GNU `make` 3.81 or later
|
* GNU `make` 3.81 or later
|
||||||
* `cmake` 3.4.3 or later
|
* `cmake` 3.4.3 or later
|
||||||
* `curl`
|
* `curl`
|
||||||
@ -113,7 +113,7 @@ build.
|
|||||||
make \
|
make \
|
||||||
diffutils \
|
diffutils \
|
||||||
tar \
|
tar \
|
||||||
mingw-w64-x86_64-python2 \
|
mingw-w64-x86_64-python \
|
||||||
mingw-w64-x86_64-cmake \
|
mingw-w64-x86_64-cmake \
|
||||||
mingw-w64-x86_64-gcc
|
mingw-w64-x86_64-gcc
|
||||||
```
|
```
|
||||||
|
@ -168,11 +168,9 @@
|
|||||||
|
|
||||||
# Python interpreter to use for various tasks throughout the build, notably
|
# Python interpreter to use for various tasks throughout the build, notably
|
||||||
# rustdoc tests, the lldb python interpreter, and some dist bits and pieces.
|
# rustdoc tests, the lldb python interpreter, and some dist bits and pieces.
|
||||||
# Note that Python 2 is currently required.
|
|
||||||
#
|
#
|
||||||
# Defaults to python2.7, then python2. If neither executable can be found, then
|
# Defaults to the Python interpreter used to execute x.py.
|
||||||
# it defaults to the Python interpreter used to execute x.py.
|
#python = "python"
|
||||||
#python = "python2.7"
|
|
||||||
|
|
||||||
# Force Cargo to check that Cargo.lock describes the precise dependency
|
# Force Cargo to check that Cargo.lock describes the precise dependency
|
||||||
# set that all the Cargo.toml files create, instead of updating it.
|
# set that all the Cargo.toml files create, instead of updating it.
|
||||||
|
1
configure
vendored
1
configure
vendored
@ -11,6 +11,7 @@ try() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try python3 "$@"
|
||||||
try python2.7 "$@"
|
try python2.7 "$@"
|
||||||
try python27 "$@"
|
try python27 "$@"
|
||||||
try python2 "$@"
|
try python2 "$@"
|
||||||
|
@ -103,7 +103,12 @@ pub unsafe fn setup(build: &mut Build) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let parent = OpenProcess(PROCESS_DUP_HANDLE, FALSE, pid.parse().unwrap());
|
let parent = OpenProcess(PROCESS_DUP_HANDLE, FALSE, pid.parse().unwrap());
|
||||||
assert!(!parent.is_null(), "{}", io::Error::last_os_error());
|
assert!(
|
||||||
|
!parent.is_null(),
|
||||||
|
"PID `{}` doesn't seem to exist: {}",
|
||||||
|
pid,
|
||||||
|
io::Error::last_os_error()
|
||||||
|
);
|
||||||
let mut parent_handle = ptr::null_mut();
|
let mut parent_handle = ptr::null_mut();
|
||||||
let r = DuplicateHandle(
|
let r = DuplicateHandle(
|
||||||
GetCurrentProcess(),
|
GetCurrentProcess(),
|
||||||
|
@ -132,8 +132,6 @@ pub fn check(build: &mut Build) {
|
|||||||
.python
|
.python
|
||||||
.take()
|
.take()
|
||||||
.map(|p| cmd_finder.must_have(p))
|
.map(|p| cmd_finder.must_have(p))
|
||||||
.or_else(|| cmd_finder.maybe_have("python2.7"))
|
|
||||||
.or_else(|| cmd_finder.maybe_have("python2"))
|
|
||||||
.or_else(|| env::var_os("BOOTSTRAP_PYTHON").map(PathBuf::from)) // set by bootstrap.py
|
.or_else(|| env::var_os("BOOTSTRAP_PYTHON").map(PathBuf::from)) // set by bootstrap.py
|
||||||
.or_else(|| Some(cmd_finder.must_have("python")));
|
.or_else(|| Some(cmd_finder.must_have("python")));
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ ENV TARGETS=arm-linux-androideabi
|
|||||||
|
|
||||||
ENV RUST_CONFIGURE_ARGS --arm-linux-androideabi-ndk=/android/ndk/arm-14
|
ENV RUST_CONFIGURE_ARGS --arm-linux-androideabi-ndk=/android/ndk/arm-14
|
||||||
|
|
||||||
ENV SCRIPT python2.7 ../x.py test --target $TARGETS
|
ENV SCRIPT python3 ../x.py test --target $TARGETS
|
||||||
|
|
||||||
COPY scripts/sccache.sh /scripts/
|
COPY scripts/sccache.sh /scripts/
|
||||||
RUN sh /scripts/sccache.sh
|
RUN sh /scripts/sccache.sh
|
||||||
|
@ -14,7 +14,7 @@ RUN apt-get update -y && apt-get install -y --no-install-recommends \
|
|||||||
libc6-dev \
|
libc6-dev \
|
||||||
libc6-dev-armhf-cross \
|
libc6-dev-armhf-cross \
|
||||||
make \
|
make \
|
||||||
python2.7 \
|
python3 \
|
||||||
qemu-system-arm \
|
qemu-system-arm \
|
||||||
xz-utils
|
xz-utils
|
||||||
|
|
||||||
@ -78,6 +78,6 @@ COPY scripts/sccache.sh /scripts/
|
|||||||
RUN sh /scripts/sccache.sh
|
RUN sh /scripts/sccache.sh
|
||||||
|
|
||||||
ENV RUST_CONFIGURE_ARGS --qemu-armhf-rootfs=/tmp/rootfs
|
ENV RUST_CONFIGURE_ARGS --qemu-armhf-rootfs=/tmp/rootfs
|
||||||
ENV SCRIPT python2.7 ../x.py test --target arm-unknown-linux-gnueabihf
|
ENV SCRIPT python3 ../x.py test --target arm-unknown-linux-gnueabihf
|
||||||
|
|
||||||
ENV NO_CHANGE_USER=1
|
ENV NO_CHANGE_USER=1
|
||||||
|
@ -14,7 +14,7 @@ RUN apt-get update -y && apt-get install -y --no-install-recommends \
|
|||||||
libc6-dev \
|
libc6-dev \
|
||||||
libc6-dev-arm64-cross \
|
libc6-dev-arm64-cross \
|
||||||
make \
|
make \
|
||||||
python2.7 \
|
python3 \
|
||||||
qemu-system-aarch64 \
|
qemu-system-aarch64 \
|
||||||
xz-utils
|
xz-utils
|
||||||
|
|
||||||
@ -75,5 +75,5 @@ RUN sh /scripts/sccache.sh
|
|||||||
|
|
||||||
ENV RUST_CONFIGURE_ARGS \
|
ENV RUST_CONFIGURE_ARGS \
|
||||||
--qemu-aarch64-rootfs=/tmp/rootfs
|
--qemu-aarch64-rootfs=/tmp/rootfs
|
||||||
ENV SCRIPT python2.7 ../x.py test --target aarch64-unknown-linux-gnu
|
ENV SCRIPT python3 ../x.py test --target aarch64-unknown-linux-gnu
|
||||||
ENV NO_CHANGE_USER=1
|
ENV NO_CHANGE_USER=1
|
||||||
|
@ -6,7 +6,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
file \
|
file \
|
||||||
curl \
|
curl \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
python \
|
python3 \
|
||||||
git \
|
git \
|
||||||
cmake \
|
cmake \
|
||||||
sudo \
|
sudo \
|
||||||
@ -33,7 +33,7 @@ ENV EMCC_CFLAGS=-O1
|
|||||||
# Emscripten installation is user-specific
|
# Emscripten installation is user-specific
|
||||||
ENV NO_CHANGE_USER=1
|
ENV NO_CHANGE_USER=1
|
||||||
|
|
||||||
ENV SCRIPT python2.7 ../x.py test --target $TARGETS
|
ENV SCRIPT python3 ../x.py test --target $TARGETS
|
||||||
|
|
||||||
# This is almost identical to the wasm32-unknown-emscripten target, so
|
# This is almost identical to the wasm32-unknown-emscripten target, so
|
||||||
# running with assertions again is not useful
|
# running with assertions again is not useful
|
||||||
|
@ -19,7 +19,7 @@ ENV RUST_CONFIGURE_ARGS \
|
|||||||
--enable-extended \
|
--enable-extended \
|
||||||
--enable-cargo-openssl-static
|
--enable-cargo-openssl-static
|
||||||
|
|
||||||
ENV SCRIPT python2.7 ../x.py dist --target $HOSTS --host $HOSTS
|
ENV SCRIPT python3 ../x.py dist --target $HOSTS --host $HOSTS
|
||||||
|
|
||||||
COPY scripts/sccache.sh /scripts/
|
COPY scripts/sccache.sh /scripts/
|
||||||
RUN sh /scripts/sccache.sh
|
RUN sh /scripts/sccache.sh
|
||||||
|
@ -33,11 +33,11 @@ ENV RUST_CONFIGURE_ARGS \
|
|||||||
# build to finish we use --warn-unresolved-symbols. Note that the missing
|
# build to finish we use --warn-unresolved-symbols. Note that the missing
|
||||||
# symbols does not affect std, only the compiler (llvm) and cargo (openssl).
|
# symbols does not affect std, only the compiler (llvm) and cargo (openssl).
|
||||||
ENV SCRIPT \
|
ENV SCRIPT \
|
||||||
python2.7 ../x.py build src/llvm --host $HOSTS --target $HOSTS && \
|
python3 ../x.py build src/llvm --host $HOSTS --target $HOSTS && \
|
||||||
(export RUSTFLAGS="\"-C link-arg=-Wl,--warn-unresolved-symbols\""; \
|
(export RUSTFLAGS="\"-C link-arg=-Wl,--warn-unresolved-symbols\""; \
|
||||||
rm /android/ndk/arm && \
|
rm /android/ndk/arm && \
|
||||||
ln -s /android/ndk/arm-14 /android/ndk/arm && \
|
ln -s /android/ndk/arm-14 /android/ndk/arm && \
|
||||||
python2.7 ../x.py dist --host $HOSTS --target $HOSTS)
|
python3 ../x.py dist --host $HOSTS --target $HOSTS)
|
||||||
|
|
||||||
COPY scripts/sccache.sh /scripts/
|
COPY scripts/sccache.sh /scripts/
|
||||||
RUN sh /scripts/sccache.sh
|
RUN sh /scripts/sccache.sh
|
||||||
|
@ -33,11 +33,11 @@ ENV RUST_CONFIGURE_ARGS \
|
|||||||
# build to finish we use --warn-unresolved-symbols. Note that the missing
|
# build to finish we use --warn-unresolved-symbols. Note that the missing
|
||||||
# symbols does not affect std, only the compiler (llvm) and cargo (openssl).
|
# symbols does not affect std, only the compiler (llvm) and cargo (openssl).
|
||||||
ENV SCRIPT \
|
ENV SCRIPT \
|
||||||
python2.7 ../x.py build src/llvm --host $HOSTS --target $HOSTS && \
|
python3 ../x.py build src/llvm --host $HOSTS --target $HOSTS && \
|
||||||
(export RUSTFLAGS="\"-C link-arg=-Wl,--warn-unresolved-symbols\""; \
|
(export RUSTFLAGS="\"-C link-arg=-Wl,--warn-unresolved-symbols\""; \
|
||||||
rm /android/ndk/x86 && \
|
rm /android/ndk/x86 && \
|
||||||
ln -s /android/ndk/x86-14 /android/ndk/x86 && \
|
ln -s /android/ndk/x86-14 /android/ndk/x86 && \
|
||||||
python2.7 ../x.py dist --host $HOSTS --target $HOSTS)
|
python3 ../x.py dist --host $HOSTS --target $HOSTS)
|
||||||
|
|
||||||
COPY scripts/sccache.sh /scripts/
|
COPY scripts/sccache.sh /scripts/
|
||||||
RUN sh /scripts/sccache.sh
|
RUN sh /scripts/sccache.sh
|
||||||
|
@ -6,7 +6,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
file \
|
file \
|
||||||
curl \
|
curl \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
python2.7 \
|
python3 \
|
||||||
git \
|
git \
|
||||||
cmake \
|
cmake \
|
||||||
sudo \
|
sudo \
|
||||||
@ -23,4 +23,4 @@ RUN sh /scripts/sccache.sh
|
|||||||
ENV HOSTS=powerpc-unknown-linux-gnuspe
|
ENV HOSTS=powerpc-unknown-linux-gnuspe
|
||||||
|
|
||||||
ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
|
ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
|
||||||
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS
|
ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS
|
||||||
|
@ -6,7 +6,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
file \
|
file \
|
||||||
curl \
|
curl \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
python2.7 \
|
python3 \
|
||||||
git \
|
git \
|
||||||
cmake \
|
cmake \
|
||||||
sudo \
|
sudo \
|
||||||
@ -23,4 +23,4 @@ RUN sh /scripts/sccache.sh
|
|||||||
ENV HOSTS=sparc64-unknown-linux-gnu
|
ENV HOSTS=sparc64-unknown-linux-gnu
|
||||||
|
|
||||||
ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
|
ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
|
||||||
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS
|
ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS
|
||||||
|
@ -19,7 +19,7 @@ ENV RUST_CONFIGURE_ARGS \
|
|||||||
--enable-extended \
|
--enable-extended \
|
||||||
--enable-cargo-openssl-static
|
--enable-cargo-openssl-static
|
||||||
|
|
||||||
ENV SCRIPT python2.7 ../x.py dist --target $HOSTS --host $HOSTS
|
ENV SCRIPT python3 ../x.py dist --target $HOSTS --host $HOSTS
|
||||||
|
|
||||||
COPY scripts/sccache.sh /scripts/
|
COPY scripts/sccache.sh /scripts/
|
||||||
RUN sh /scripts/sccache.sh
|
RUN sh /scripts/sccache.sh
|
||||||
|
@ -6,7 +6,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
file \
|
file \
|
||||||
curl \
|
curl \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
python2.7 \
|
python3 \
|
||||||
git \
|
git \
|
||||||
cmake \
|
cmake \
|
||||||
sudo \
|
sudo \
|
||||||
@ -33,4 +33,4 @@ ENV \
|
|||||||
ENV HOSTS=x86_64-unknown-dragonfly
|
ENV HOSTS=x86_64-unknown-dragonfly
|
||||||
|
|
||||||
ENV RUST_CONFIGURE_ARGS --enable-extended
|
ENV RUST_CONFIGURE_ARGS --enable-extended
|
||||||
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS
|
ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS
|
||||||
|
@ -18,7 +18,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
make \
|
make \
|
||||||
nasm \
|
nasm \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
python2.7 \
|
python3 \
|
||||||
sudo \
|
sudo \
|
||||||
texinfo \
|
texinfo \
|
||||||
wget \
|
wget \
|
||||||
@ -46,4 +46,4 @@ ENV RUST_CONFIGURE_ARGS --disable-jemalloc \
|
|||||||
--set=$TARGET.cc=x86_64-unknown-haiku-gcc \
|
--set=$TARGET.cc=x86_64-unknown-haiku-gcc \
|
||||||
--set=$TARGET.cxx=x86_64-unknown-haiku-g++ \
|
--set=$TARGET.cxx=x86_64-unknown-haiku-g++ \
|
||||||
--set=$TARGET.llvm-config=/bin/llvm-config-haiku
|
--set=$TARGET.llvm-config=/bin/llvm-config-haiku
|
||||||
ENV SCRIPT python2.7 ../x.py dist --host=$HOST --target=$HOST
|
ENV SCRIPT python3 ../x.py dist --host=$HOST --target=$HOST
|
||||||
|
@ -19,4 +19,4 @@ ENV \
|
|||||||
CXX_x86_64_unknown_redox=x86_64-unknown-redox-g++
|
CXX_x86_64_unknown_redox=x86_64-unknown-redox-g++
|
||||||
|
|
||||||
ENV RUST_CONFIGURE_ARGS --enable-extended
|
ENV RUST_CONFIGURE_ARGS --enable-extended
|
||||||
ENV SCRIPT python2.7 ../x.py dist --target x86_64-unknown-redox
|
ENV SCRIPT python3 ../x.py dist --target x86_64-unknown-redox
|
||||||
|
@ -36,4 +36,4 @@ ENV RUST_CONFIGURE_ARGS \
|
|||||||
--enable-extended \
|
--enable-extended \
|
||||||
--enable-profiler \
|
--enable-profiler \
|
||||||
--disable-docs
|
--disable-docs
|
||||||
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS
|
ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS
|
||||||
|
@ -32,7 +32,7 @@ ENV RUST_CONFIGURE_ARGS \
|
|||||||
--x86_64-linux-android-ndk=/android/ndk/x86_64-21 \
|
--x86_64-linux-android-ndk=/android/ndk/x86_64-21 \
|
||||||
--disable-docs
|
--disable-docs
|
||||||
|
|
||||||
ENV SCRIPT python2.7 ../x.py dist --target $TARGETS
|
ENV SCRIPT python3 ../x.py dist --target $TARGETS
|
||||||
|
|
||||||
COPY scripts/sccache.sh /scripts/
|
COPY scripts/sccache.sh /scripts/
|
||||||
RUN sh /scripts/sccache.sh
|
RUN sh /scripts/sccache.sh
|
||||||
|
@ -28,4 +28,4 @@ ENV CC_arm_unknown_linux_gnueabi=arm-unknown-linux-gnueabi-gcc \
|
|||||||
ENV HOSTS=arm-unknown-linux-gnueabi
|
ENV HOSTS=arm-unknown-linux-gnueabi
|
||||||
|
|
||||||
ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
|
ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
|
||||||
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS
|
ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS
|
||||||
|
@ -28,4 +28,4 @@ ENV CC_arm_unknown_linux_gnueabihf=arm-unknown-linux-gnueabihf-gcc \
|
|||||||
ENV HOSTS=arm-unknown-linux-gnueabihf
|
ENV HOSTS=arm-unknown-linux-gnueabihf
|
||||||
|
|
||||||
ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
|
ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
|
||||||
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS
|
ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS
|
||||||
|
@ -28,4 +28,4 @@ ENV CC_armv7_unknown_linux_gnueabihf=armv7-unknown-linux-gnueabihf-gcc \
|
|||||||
ENV HOSTS=armv7-unknown-linux-gnueabihf
|
ENV HOSTS=armv7-unknown-linux-gnueabihf
|
||||||
|
|
||||||
ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
|
ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
|
||||||
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS
|
ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS
|
||||||
|
@ -6,7 +6,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
file \
|
file \
|
||||||
curl \
|
curl \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
python2.7 \
|
python3 \
|
||||||
git \
|
git \
|
||||||
cmake \
|
cmake \
|
||||||
xz-utils \
|
xz-utils \
|
||||||
@ -46,5 +46,5 @@ ENV CFLAGS_i586_unknown_linux_musl=-Wa,-mrelax-relocations=no
|
|||||||
ENV TARGETS=i586-unknown-linux-gnu,i686-unknown-linux-musl
|
ENV TARGETS=i586-unknown-linux-gnu,i686-unknown-linux-musl
|
||||||
|
|
||||||
ENV SCRIPT \
|
ENV SCRIPT \
|
||||||
python2.7 ../x.py test --target $TARGETS && \
|
python3 ../x.py test --target $TARGETS && \
|
||||||
python2.7 ../x.py dist --target $TARGETS,i586-unknown-linux-musl
|
python3 ../x.py dist --target $TARGETS,i586-unknown-linux-musl
|
||||||
|
@ -6,7 +6,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
file \
|
file \
|
||||||
curl \
|
curl \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
python2.7 \
|
python3 \
|
||||||
git \
|
git \
|
||||||
cmake \
|
cmake \
|
||||||
sudo \
|
sudo \
|
||||||
@ -30,4 +30,4 @@ ENV \
|
|||||||
ENV HOSTS=i686-unknown-freebsd
|
ENV HOSTS=i686-unknown-freebsd
|
||||||
|
|
||||||
ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
|
ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
|
||||||
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS
|
ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS
|
||||||
|
@ -6,7 +6,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
file \
|
file \
|
||||||
curl \
|
curl \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
python2.7 \
|
python3 \
|
||||||
git \
|
git \
|
||||||
cmake \
|
cmake \
|
||||||
sudo \
|
sudo \
|
||||||
@ -23,4 +23,4 @@ RUN sh /scripts/sccache.sh
|
|||||||
ENV HOSTS=mips-unknown-linux-gnu
|
ENV HOSTS=mips-unknown-linux-gnu
|
||||||
|
|
||||||
ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
|
ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
|
||||||
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS
|
ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS
|
||||||
|
@ -6,7 +6,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
file \
|
file \
|
||||||
curl \
|
curl \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
python2.7 \
|
python3 \
|
||||||
git \
|
git \
|
||||||
cmake \
|
cmake \
|
||||||
sudo \
|
sudo \
|
||||||
@ -22,4 +22,4 @@ RUN sh /scripts/sccache.sh
|
|||||||
ENV HOSTS=mips64-unknown-linux-gnuabi64
|
ENV HOSTS=mips64-unknown-linux-gnuabi64
|
||||||
|
|
||||||
ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
|
ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
|
||||||
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS
|
ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS
|
||||||
|
@ -6,7 +6,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
file \
|
file \
|
||||||
curl \
|
curl \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
python2.7 \
|
python3 \
|
||||||
git \
|
git \
|
||||||
cmake \
|
cmake \
|
||||||
sudo \
|
sudo \
|
||||||
@ -23,4 +23,4 @@ RUN sh /scripts/sccache.sh
|
|||||||
ENV HOSTS=mips64el-unknown-linux-gnuabi64
|
ENV HOSTS=mips64el-unknown-linux-gnuabi64
|
||||||
|
|
||||||
ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
|
ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
|
||||||
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS
|
ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS
|
||||||
|
@ -6,7 +6,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
file \
|
file \
|
||||||
curl \
|
curl \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
python2.7 \
|
python3 \
|
||||||
git \
|
git \
|
||||||
cmake \
|
cmake \
|
||||||
sudo \
|
sudo \
|
||||||
@ -22,4 +22,4 @@ RUN sh /scripts/sccache.sh
|
|||||||
ENV HOSTS=mipsel-unknown-linux-gnu
|
ENV HOSTS=mipsel-unknown-linux-gnu
|
||||||
|
|
||||||
ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
|
ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
|
||||||
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS
|
ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS
|
||||||
|
@ -35,4 +35,4 @@ ENV \
|
|||||||
ENV HOSTS=powerpc-unknown-linux-gnu
|
ENV HOSTS=powerpc-unknown-linux-gnu
|
||||||
|
|
||||||
ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
|
ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
|
||||||
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS
|
ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS
|
||||||
|
@ -36,4 +36,4 @@ ENV \
|
|||||||
ENV HOSTS=powerpc64-unknown-linux-gnu
|
ENV HOSTS=powerpc64-unknown-linux-gnu
|
||||||
|
|
||||||
ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
|
ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
|
||||||
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS
|
ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS
|
||||||
|
@ -33,4 +33,4 @@ ENV \
|
|||||||
ENV HOSTS=powerpc64le-unknown-linux-gnu
|
ENV HOSTS=powerpc64le-unknown-linux-gnu
|
||||||
|
|
||||||
ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
|
ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
|
||||||
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS
|
ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS
|
||||||
|
@ -35,4 +35,4 @@ ENV \
|
|||||||
ENV HOSTS=s390x-unknown-linux-gnu
|
ENV HOSTS=s390x-unknown-linux-gnu
|
||||||
|
|
||||||
ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
|
ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
|
||||||
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS
|
ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS
|
||||||
|
@ -18,7 +18,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
file \
|
file \
|
||||||
curl \
|
curl \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
python2.7 \
|
|
||||||
python3 \
|
python3 \
|
||||||
git \
|
git \
|
||||||
cmake \
|
cmake \
|
||||||
@ -209,8 +208,8 @@ ENV RUST_CONFIGURE_ARGS \
|
|||||||
--disable-docs
|
--disable-docs
|
||||||
|
|
||||||
ENV SCRIPT \
|
ENV SCRIPT \
|
||||||
python2.7 ../x.py test --target $RUN_MAKE_TARGETS src/test/run-make && \
|
python3 ../x.py test --target $RUN_MAKE_TARGETS src/test/run-make && \
|
||||||
python2.7 ../x.py dist --target $TARGETS
|
python3 ../x.py dist --target $TARGETS
|
||||||
|
|
||||||
# sccache
|
# sccache
|
||||||
COPY scripts/sccache.sh /scripts/
|
COPY scripts/sccache.sh /scripts/
|
||||||
|
@ -17,7 +17,7 @@ RUN apt-get update && apt-get build-dep -y clang llvm && apt-get install -y --no
|
|||||||
libmpfr-dev \
|
libmpfr-dev \
|
||||||
ninja-build \
|
ninja-build \
|
||||||
nodejs \
|
nodejs \
|
||||||
python2.7-dev \
|
python3-dev \
|
||||||
software-properties-common \
|
software-properties-common \
|
||||||
unzip \
|
unzip \
|
||||||
# Needed for apt-key to work:
|
# Needed for apt-key to work:
|
||||||
@ -110,4 +110,4 @@ ENV RUST_CONFIGURE_ARGS --enable-extended --enable-lld --disable-docs \
|
|||||||
--set target.wasm32-wasi.wasi-root=/wasm32-wasi \
|
--set target.wasm32-wasi.wasi-root=/wasm32-wasi \
|
||||||
--musl-root-armv7=/musl-armv7
|
--musl-root-armv7=/musl-armv7
|
||||||
|
|
||||||
ENV SCRIPT python2.7 ../x.py dist --target $TARGETS
|
ENV SCRIPT python3 ../x.py dist --target $TARGETS
|
||||||
|
@ -6,7 +6,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
file \
|
file \
|
||||||
curl \
|
curl \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
python2.7 \
|
python3 \
|
||||||
git \
|
git \
|
||||||
cmake \
|
cmake \
|
||||||
sudo \
|
sudo \
|
||||||
@ -30,4 +30,4 @@ ENV \
|
|||||||
ENV HOSTS=x86_64-unknown-freebsd
|
ENV HOSTS=x86_64-unknown-freebsd
|
||||||
|
|
||||||
ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
|
ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
|
||||||
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS
|
ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS
|
||||||
|
@ -7,7 +7,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
wget \
|
wget \
|
||||||
curl \
|
curl \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
python2.7 \
|
python3 \
|
||||||
git \
|
git \
|
||||||
cmake \
|
cmake \
|
||||||
xz-utils \
|
xz-utils \
|
||||||
@ -47,4 +47,4 @@ ENV CFLAGS_x86_64_unknown_linux_musl="-Wa,-mrelax-relocations=no -Wa,--compress-
|
|||||||
-Wl,--compress-debug-sections=none"
|
-Wl,--compress-debug-sections=none"
|
||||||
|
|
||||||
# To run native tests replace `dist` below with `test`
|
# To run native tests replace `dist` below with `test`
|
||||||
ENV SCRIPT python2.7 ../x.py dist --build $HOSTS
|
ENV SCRIPT python3 ../x.py dist --build $HOSTS
|
||||||
|
@ -19,4 +19,4 @@ ENV \
|
|||||||
ENV HOSTS=x86_64-unknown-netbsd
|
ENV HOSTS=x86_64-unknown-netbsd
|
||||||
|
|
||||||
ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
|
ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
|
||||||
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS
|
ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS
|
||||||
|
@ -6,7 +6,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
file \
|
file \
|
||||||
curl \
|
curl \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
python2.7 \
|
python3 \
|
||||||
git \
|
git \
|
||||||
cmake \
|
cmake \
|
||||||
sudo \
|
sudo \
|
||||||
@ -18,7 +18,7 @@ COPY scripts/sccache.sh /scripts/
|
|||||||
RUN sh /scripts/sccache.sh
|
RUN sh /scripts/sccache.sh
|
||||||
|
|
||||||
ENV RUST_CONFIGURE_ARGS --build=i686-unknown-linux-gnu --disable-optimize-tests
|
ENV RUST_CONFIGURE_ARGS --build=i686-unknown-linux-gnu --disable-optimize-tests
|
||||||
ENV SCRIPT python2.7 ../x.py test
|
ENV SCRIPT python3 ../x.py test
|
||||||
|
|
||||||
# FIXME(#59637) takes too long on CI right now
|
# FIXME(#59637) takes too long on CI right now
|
||||||
ENV NO_LLVM_ASSERTIONS=1 NO_DEBUG_ASSERTIONS=1
|
ENV NO_LLVM_ASSERTIONS=1 NO_DEBUG_ASSERTIONS=1
|
||||||
|
@ -6,7 +6,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
file \
|
file \
|
||||||
curl \
|
curl \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
python2.7 \
|
python3 \
|
||||||
git \
|
git \
|
||||||
cmake \
|
cmake \
|
||||||
sudo \
|
sudo \
|
||||||
@ -20,7 +20,7 @@ RUN sh /scripts/sccache.sh
|
|||||||
ENV RUST_CONFIGURE_ARGS --build=i686-unknown-linux-gnu
|
ENV RUST_CONFIGURE_ARGS --build=i686-unknown-linux-gnu
|
||||||
# Exclude some tests that are unlikely to be platform specific, to speed up
|
# Exclude some tests that are unlikely to be platform specific, to speed up
|
||||||
# this slow job.
|
# this slow job.
|
||||||
ENV SCRIPT python2.7 ../x.py test \
|
ENV SCRIPT python3 ../x.py test \
|
||||||
--exclude src/bootstrap \
|
--exclude src/bootstrap \
|
||||||
--exclude src/test/rustdoc-js \
|
--exclude src/test/rustdoc-js \
|
||||||
--exclude src/tools/error_index_generator \
|
--exclude src/tools/error_index_generator \
|
||||||
|
@ -6,7 +6,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
file \
|
file \
|
||||||
curl \
|
curl \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
python2.7 \
|
python3 \
|
||||||
git \
|
git \
|
||||||
cmake \
|
cmake \
|
||||||
sudo \
|
sudo \
|
||||||
@ -22,9 +22,9 @@ RUN sh /scripts/sccache.sh
|
|||||||
COPY mingw-check/validate-toolstate.sh /scripts/
|
COPY mingw-check/validate-toolstate.sh /scripts/
|
||||||
|
|
||||||
ENV RUN_CHECK_WITH_PARALLEL_QUERIES 1
|
ENV RUN_CHECK_WITH_PARALLEL_QUERIES 1
|
||||||
ENV SCRIPT python2.7 ../x.py test src/tools/expand-yaml-anchors && \
|
ENV SCRIPT python3 ../x.py test src/tools/expand-yaml-anchors && \
|
||||||
python2.7 ../x.py check --target=i686-pc-windows-gnu --host=i686-pc-windows-gnu && \
|
python3 ../x.py check --target=i686-pc-windows-gnu --host=i686-pc-windows-gnu && \
|
||||||
python2.7 ../x.py build --stage 0 src/tools/build-manifest && \
|
python3 ../x.py build --stage 0 src/tools/build-manifest && \
|
||||||
python2.7 ../x.py test --stage 0 src/tools/compiletest && \
|
python3 ../x.py test --stage 0 src/tools/compiletest && \
|
||||||
python2.7 ../x.py test src/tools/tidy && \
|
python3 ../x.py test src/tools/tidy && \
|
||||||
/scripts/validate-toolstate.sh
|
/scripts/validate-toolstate.sh
|
||||||
|
@ -7,12 +7,12 @@ IFS=$'\n\t'
|
|||||||
rm -rf rust-toolstate
|
rm -rf rust-toolstate
|
||||||
git clone --depth=1 https://github.com/rust-lang-nursery/rust-toolstate.git
|
git clone --depth=1 https://github.com/rust-lang-nursery/rust-toolstate.git
|
||||||
cd rust-toolstate
|
cd rust-toolstate
|
||||||
python2.7 "../../src/tools/publish_toolstate.py" "$(git rev-parse HEAD)" \
|
python3 "../../src/tools/publish_toolstate.py" "$(git rev-parse HEAD)" \
|
||||||
"$(git log --format=%s -n1 HEAD)" "" ""
|
"$(git log --format=%s -n1 HEAD)" "" ""
|
||||||
# Only check maintainers if this build is supposed to publish toolstate.
|
# Only check maintainers if this build is supposed to publish toolstate.
|
||||||
# Builds that are not supposed to publish don't have the access token.
|
# Builds that are not supposed to publish don't have the access token.
|
||||||
if [ -n "${TOOLSTATE_PUBLISH+is_set}" ]; then
|
if [ -n "${TOOLSTATE_PUBLISH+is_set}" ]; then
|
||||||
TOOLSTATE_VALIDATE_MAINTAINERS_REPO=rust-lang/rust python2.7 \
|
TOOLSTATE_VALIDATE_MAINTAINERS_REPO=rust-lang/rust python3 \
|
||||||
"../../src/tools/publish_toolstate.py"
|
"../../src/tools/publish_toolstate.py"
|
||||||
fi
|
fi
|
||||||
cd ..
|
cd ..
|
||||||
|
@ -11,7 +11,7 @@ apt-get install -y --no-install-recommends \
|
|||||||
libssl-dev \
|
libssl-dev \
|
||||||
make \
|
make \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
python2.7 \
|
python3 \
|
||||||
sudo \
|
sudo \
|
||||||
unzip \
|
unzip \
|
||||||
xz-utils
|
xz-utils
|
||||||
|
@ -13,7 +13,7 @@ download_ndk() {
|
|||||||
|
|
||||||
make_standalone_toolchain() {
|
make_standalone_toolchain() {
|
||||||
# See https://developer.android.com/ndk/guides/standalone_toolchain.htm
|
# See https://developer.android.com/ndk/guides/standalone_toolchain.htm
|
||||||
python2.7 /android/ndk/ndk/build/tools/make_standalone_toolchain.py \
|
python3 /android/ndk/ndk/build/tools/make_standalone_toolchain.py \
|
||||||
--install-dir /android/ndk/$1-$2 \
|
--install-dir /android/ndk/$1-$2 \
|
||||||
--arch $1 \
|
--arch $1 \
|
||||||
--api $2
|
--api $2
|
||||||
|
@ -19,7 +19,7 @@ apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
make \
|
make \
|
||||||
patch \
|
patch \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
python2.7 \
|
python3 \
|
||||||
sudo \
|
sudo \
|
||||||
texinfo \
|
texinfo \
|
||||||
unzip \
|
unzip \
|
||||||
|
@ -6,7 +6,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
file \
|
file \
|
||||||
curl \
|
curl \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
python \
|
python3 \
|
||||||
git \
|
git \
|
||||||
cmake \
|
cmake \
|
||||||
sudo \
|
sudo \
|
||||||
@ -40,7 +40,7 @@ ENV RUST_CONFIGURE_ARGS \
|
|||||||
ENV NO_DEBUG_ASSERTIONS=1
|
ENV NO_DEBUG_ASSERTIONS=1
|
||||||
|
|
||||||
ENV WASM_TARGETS=wasm32-unknown-unknown
|
ENV WASM_TARGETS=wasm32-unknown-unknown
|
||||||
ENV WASM_SCRIPT python2.7 /checkout/x.py test --target $WASM_TARGETS \
|
ENV WASM_SCRIPT python3 /checkout/x.py test --target $WASM_TARGETS \
|
||||||
src/test/run-make \
|
src/test/run-make \
|
||||||
src/test/ui \
|
src/test/ui \
|
||||||
src/test/compile-fail \
|
src/test/compile-fail \
|
||||||
@ -49,13 +49,13 @@ ENV WASM_SCRIPT python2.7 /checkout/x.py test --target $WASM_TARGETS \
|
|||||||
src/libcore
|
src/libcore
|
||||||
|
|
||||||
ENV NVPTX_TARGETS=nvptx64-nvidia-cuda
|
ENV NVPTX_TARGETS=nvptx64-nvidia-cuda
|
||||||
ENV NVPTX_SCRIPT python2.7 /checkout/x.py test --target $NVPTX_TARGETS \
|
ENV NVPTX_SCRIPT python3 /checkout/x.py test --target $NVPTX_TARGETS \
|
||||||
src/test/run-make \
|
src/test/run-make \
|
||||||
src/test/assembly
|
src/test/assembly
|
||||||
|
|
||||||
ENV MUSL_TARGETS=x86_64-unknown-linux-musl \
|
ENV MUSL_TARGETS=x86_64-unknown-linux-musl \
|
||||||
CC_x86_64_unknown_linux_musl=x86_64-linux-musl-gcc \
|
CC_x86_64_unknown_linux_musl=x86_64-linux-musl-gcc \
|
||||||
CXX_x86_64_unknown_linux_musl=x86_64-linux-musl-g++
|
CXX_x86_64_unknown_linux_musl=x86_64-linux-musl-g++
|
||||||
ENV MUSL_SCRIPT python2.7 /checkout/x.py test --target $MUSL_TARGETS
|
ENV MUSL_SCRIPT python3 /checkout/x.py test --target $MUSL_TARGETS
|
||||||
|
|
||||||
ENV SCRIPT $WASM_SCRIPT && $NVPTX_SCRIPT && $MUSL_SCRIPT
|
ENV SCRIPT $WASM_SCRIPT && $NVPTX_SCRIPT && $MUSL_SCRIPT
|
||||||
|
@ -6,7 +6,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
file \
|
file \
|
||||||
curl \
|
curl \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
python \
|
python3 \
|
||||||
git \
|
git \
|
||||||
cmake \
|
cmake \
|
||||||
sudo \
|
sudo \
|
||||||
@ -20,6 +20,9 @@ RUN bash /scripts/emscripten.sh
|
|||||||
COPY scripts/sccache.sh /scripts/
|
COPY scripts/sccache.sh /scripts/
|
||||||
RUN sh /scripts/sccache.sh
|
RUN sh /scripts/sccache.sh
|
||||||
|
|
||||||
|
# emcc seems to need python to specifically be "python" and not "python3"
|
||||||
|
RUN ln `which python3` /usr/bin/python
|
||||||
|
|
||||||
ENV PATH=$PATH:/emsdk-portable
|
ENV PATH=$PATH:/emsdk-portable
|
||||||
ENV PATH=$PATH:/emsdk-portable/upstream/emscripten/
|
ENV PATH=$PATH:/emsdk-portable/upstream/emscripten/
|
||||||
ENV PATH=$PATH:/emsdk-portable/node/12.9.1_64bit/bin/
|
ENV PATH=$PATH:/emsdk-portable/node/12.9.1_64bit/bin/
|
||||||
@ -35,7 +38,7 @@ ENV NO_CHANGE_USER=1
|
|||||||
|
|
||||||
# FIXME: Re-enable these tests once https://github.com/rust-lang/cargo/pull/7476
|
# FIXME: Re-enable these tests once https://github.com/rust-lang/cargo/pull/7476
|
||||||
# is picked up by CI
|
# is picked up by CI
|
||||||
ENV SCRIPT python2.7 ../x.py test --target $TARGETS \
|
ENV SCRIPT python3 ../x.py test --target $TARGETS \
|
||||||
--exclude src/libcore \
|
--exclude src/libcore \
|
||||||
--exclude src/liballoc \
|
--exclude src/liballoc \
|
||||||
--exclude src/libproc_macro \
|
--exclude src/libproc_macro \
|
||||||
|
@ -6,7 +6,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
file \
|
file \
|
||||||
curl \
|
curl \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
python2.7 \
|
python3 \
|
||||||
git \
|
git \
|
||||||
cmake \
|
cmake \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
|
@ -6,8 +6,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
file \
|
file \
|
||||||
curl \
|
curl \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
python2.7 \
|
python3 \
|
||||||
python2.7-dev \
|
python3-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
libncurses-dev \
|
libncurses-dev \
|
||||||
libedit-dev \
|
libedit-dev \
|
||||||
@ -40,5 +40,5 @@ ENV RUST_CONFIGURE_ARGS \
|
|||||||
--set target.x86_64-unknown-linux-gnu.cxx=clang++
|
--set target.x86_64-unknown-linux-gnu.cxx=clang++
|
||||||
|
|
||||||
ENV SCRIPT \
|
ENV SCRIPT \
|
||||||
python2.7 ../x.py build && \
|
python3 ../x.py build && \
|
||||||
python2.7 ../x.py test src/test/run-make-fulldeps --test-args clang
|
python3 ../x.py test src/test/run-make-fulldeps --test-args clang
|
||||||
|
@ -6,7 +6,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
file \
|
file \
|
||||||
curl \
|
curl \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
python2.7 \
|
python3 \
|
||||||
git \
|
git \
|
||||||
cmake \
|
cmake \
|
||||||
sudo \
|
sudo \
|
||||||
@ -19,7 +19,7 @@ COPY scripts/sccache.sh /scripts/
|
|||||||
RUN sh /scripts/sccache.sh
|
RUN sh /scripts/sccache.sh
|
||||||
|
|
||||||
ENV RUST_CONFIGURE_ARGS --build=x86_64-unknown-linux-gnu --set rust.ignore-git=false
|
ENV RUST_CONFIGURE_ARGS --build=x86_64-unknown-linux-gnu --set rust.ignore-git=false
|
||||||
ENV SCRIPT python2.7 ../x.py test distcheck
|
ENV SCRIPT python3 ../x.py test distcheck
|
||||||
ENV DIST_SRC 1
|
ENV DIST_SRC 1
|
||||||
|
|
||||||
# The purpose of this builder is to test that we can `./x.py test` successfully
|
# The purpose of this builder is to test that we can `./x.py test` successfully
|
||||||
|
@ -6,7 +6,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
file \
|
file \
|
||||||
curl \
|
curl \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
python2.7 \
|
python3 \
|
||||||
git \
|
git \
|
||||||
cmake \
|
cmake \
|
||||||
sudo \
|
sudo \
|
||||||
@ -21,7 +21,7 @@ RUN sh /scripts/sccache.sh
|
|||||||
ENV RUST_CONFIGURE_ARGS \
|
ENV RUST_CONFIGURE_ARGS \
|
||||||
--build=x86_64-unknown-linux-gnu \
|
--build=x86_64-unknown-linux-gnu \
|
||||||
--enable-full-bootstrap
|
--enable-full-bootstrap
|
||||||
ENV SCRIPT python2.7 ../x.py build
|
ENV SCRIPT python3 ../x.py build
|
||||||
|
|
||||||
# In general this just slows down the build and we're just a smoke test that
|
# In general this just slows down the build and we're just a smoke test that
|
||||||
# a full bootstrap works in general, so there's not much need to take this
|
# a full bootstrap works in general, so there's not much need to take this
|
||||||
|
@ -6,7 +6,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
file \
|
file \
|
||||||
curl \
|
curl \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
python2.7 \
|
python3 \
|
||||||
git \
|
git \
|
||||||
cmake \
|
cmake \
|
||||||
sudo \
|
sudo \
|
||||||
@ -21,4 +21,4 @@ RUN sh /scripts/sccache.sh
|
|||||||
ENV RUST_CONFIGURE_ARGS --build=x86_64-unknown-linux-gnu \
|
ENV RUST_CONFIGURE_ARGS --build=x86_64-unknown-linux-gnu \
|
||||||
--disable-optimize-tests \
|
--disable-optimize-tests \
|
||||||
--set rust.test-compare-mode
|
--set rust.test-compare-mode
|
||||||
ENV SCRIPT python2.7 ../x.py test
|
ENV SCRIPT python3 ../x.py test
|
||||||
|
@ -6,7 +6,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
file \
|
file \
|
||||||
curl \
|
curl \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
python2.7 \
|
python3 \
|
||||||
git \
|
git \
|
||||||
cmake \
|
cmake \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
|
@ -7,7 +7,7 @@ X_PY="$1"
|
|||||||
# Try to test all the tools and store the build/test success in the TOOLSTATE_FILE
|
# Try to test all the tools and store the build/test success in the TOOLSTATE_FILE
|
||||||
|
|
||||||
set +e
|
set +e
|
||||||
python2.7 "$X_PY" test --no-fail-fast \
|
python3 "$X_PY" test --no-fail-fast \
|
||||||
src/doc/book \
|
src/doc/book \
|
||||||
src/doc/nomicon \
|
src/doc/nomicon \
|
||||||
src/doc/reference \
|
src/doc/reference \
|
||||||
@ -22,4 +22,4 @@ python2.7 "$X_PY" test --no-fail-fast \
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
python2.7 "$X_PY" test check-tools
|
python3 "$X_PY" test check-tools
|
||||||
|
@ -6,7 +6,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
file \
|
file \
|
||||||
curl \
|
curl \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
python2.7 \
|
python3 \
|
||||||
git \
|
git \
|
||||||
cmake \
|
cmake \
|
||||||
sudo \
|
sudo \
|
||||||
@ -23,4 +23,4 @@ ENV RUST_CONFIGURE_ARGS \
|
|||||||
--enable-sanitizers \
|
--enable-sanitizers \
|
||||||
--enable-profiler \
|
--enable-profiler \
|
||||||
--enable-compiler-docs
|
--enable-compiler-docs
|
||||||
ENV SCRIPT python2.7 ../x.py test
|
ENV SCRIPT python3 ../x.py test
|
||||||
|
@ -23,6 +23,14 @@ fi
|
|||||||
ci_dir=`cd $(dirname $0) && pwd`
|
ci_dir=`cd $(dirname $0) && pwd`
|
||||||
source "$ci_dir/shared.sh"
|
source "$ci_dir/shared.sh"
|
||||||
|
|
||||||
|
if command -v python > /dev/null; then
|
||||||
|
PYTHON="python"
|
||||||
|
elif command -v python3 > /dev/null; then
|
||||||
|
PYTHON="python3"
|
||||||
|
else
|
||||||
|
PYTHON="python2"
|
||||||
|
fi
|
||||||
|
|
||||||
if ! isCI || isCiBranch auto || isCiBranch beta; then
|
if ! isCI || isCiBranch auto || isCiBranch beta; then
|
||||||
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set build.print-step-timings --enable-verbose-tests"
|
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set build.print-step-timings --enable-verbose-tests"
|
||||||
fi
|
fi
|
||||||
@ -107,7 +115,7 @@ SCCACHE_IDLE_TIMEOUT=10800 sccache --start-server || true
|
|||||||
|
|
||||||
if [ "$RUN_CHECK_WITH_PARALLEL_QUERIES" != "" ]; then
|
if [ "$RUN_CHECK_WITH_PARALLEL_QUERIES" != "" ]; then
|
||||||
$SRC/configure --enable-parallel-compiler
|
$SRC/configure --enable-parallel-compiler
|
||||||
CARGO_INCREMENTAL=0 python2.7 ../x.py check
|
CARGO_INCREMENTAL=0 $PYTHON ../x.py check
|
||||||
rm -f config.toml
|
rm -f config.toml
|
||||||
rm -rf build
|
rm -rf build
|
||||||
fi
|
fi
|
||||||
|
@ -50,8 +50,9 @@ if isWindows; then
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
if [[ "${CUSTOM_MINGW-0}" -ne 1 ]]; then
|
if [[ "${CUSTOM_MINGW-0}" -ne 1 ]]; then
|
||||||
pacman -S --noconfirm --needed mingw-w64-$arch-toolchain \
|
pacman -S --noconfirm --needed mingw-w64-$arch-toolchain mingw-w64-$arch-cmake \
|
||||||
mingw-w64-$arch-cmake mingw-w64-$arch-gcc mingw-w64-$arch-python2
|
mingw-w64-$arch-gcc \
|
||||||
|
mingw-w64-$arch-python # the python package is actually for python3
|
||||||
ciCommandAddPath "$(ciCheckoutPath)/msys2/mingw${bits}/bin"
|
ciCommandAddPath "$(ciCheckoutPath)/msys2/mingw${bits}/bin"
|
||||||
else
|
else
|
||||||
mingw_dir="mingw${bits}"
|
mingw_dir="mingw${bits}"
|
||||||
|
@ -13,7 +13,7 @@ if isWindows; then
|
|||||||
# one way or another. The msys interpreters seem to have weird path conversions
|
# one way or another. The msys interpreters seem to have weird path conversions
|
||||||
# baked in which break LLVM's build system one way or another, so let's use the
|
# baked in which break LLVM's build system one way or another, so let's use the
|
||||||
# native version which keeps everything as native as possible.
|
# native version which keeps everything as native as possible.
|
||||||
python_home="C:/hostedtoolcache/windows/Python/2.7.17/x64"
|
python_home="C:/hostedtoolcache/windows/Python/3.7.6/x64"
|
||||||
cp "${python_home}/python.exe" "${python_home}/python2.7.exe"
|
cp "${python_home}/python.exe" "${python_home}/python3.exe"
|
||||||
ciCommandAddPath "C:\\hostedtoolcache\\windows\\Python\\2.7.17\\x64"
|
ciCommandAddPath "C:\\hostedtoolcache\\windows\\Python\\3.7.6\\x64"
|
||||||
fi
|
fi
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python2.7
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Generate powers of ten using William Clinger's ``AlgorithmM`` for use in
|
Generate powers of ten using William Clinger's ``AlgorithmM`` for use in
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python2.7
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Testing dec2flt
|
Testing dec2flt
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
all:
|
all:
|
||||||
python2.7 test.py
|
'$(PYTHON)' test.py
|
||||||
|
@ -57,6 +57,13 @@ REPOS = {
|
|||||||
'rustc-dev-guide': 'https://github.com/rust-lang/rustc-dev-guide',
|
'rustc-dev-guide': 'https://github.com/rust-lang/rustc-dev-guide',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def load_json_from_response(resp):
|
||||||
|
content = resp.read()
|
||||||
|
if isinstance(content, bytes):
|
||||||
|
content = content.decode('utf-8')
|
||||||
|
else:
|
||||||
|
print("Refusing to decode " + str(type(content)) + " to str")
|
||||||
|
return json.loads(content)
|
||||||
|
|
||||||
def validate_maintainers(repo, github_token):
|
def validate_maintainers(repo, github_token):
|
||||||
'''Ensure all maintainers are assignable on a GitHub repo'''
|
'''Ensure all maintainers are assignable on a GitHub repo'''
|
||||||
@ -71,7 +78,7 @@ def validate_maintainers(repo, github_token):
|
|||||||
# Properly load nested teams.
|
# Properly load nested teams.
|
||||||
'Accept': 'application/vnd.github.hellcat-preview+json',
|
'Accept': 'application/vnd.github.hellcat-preview+json',
|
||||||
}))
|
}))
|
||||||
assignable.extend(user['login'] for user in json.load(response))
|
assignable.extend(user['login'] for user in load_json_from_response(response))
|
||||||
# Load the next page if available
|
# Load the next page if available
|
||||||
url = None
|
url = None
|
||||||
link_header = response.headers.get('Link')
|
link_header = response.headers.get('Link')
|
||||||
@ -176,7 +183,7 @@ def update_latest(
|
|||||||
):
|
):
|
||||||
'''Updates `_data/latest.json` to match build result of the given commit.
|
'''Updates `_data/latest.json` to match build result of the given commit.
|
||||||
'''
|
'''
|
||||||
with open('_data/latest.json', 'rb+') as f:
|
with open('_data/latest.json', 'r+') as f:
|
||||||
latest = json.load(f, object_pairs_hook=collections.OrderedDict)
|
latest = json.load(f, object_pairs_hook=collections.OrderedDict)
|
||||||
|
|
||||||
current_status = {
|
current_status = {
|
||||||
|
Loading…
Reference in New Issue
Block a user