mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 02:03:53 +00:00
Rollup merge of #127102 - tmandry:rename-fuchsia-builder, r=Kobzol
Rename fuchsia builder and bump Fuchsia This PR renames the fuchsia builder as requested in https://github.com/rust-lang/rustc-dev-guide/pull/1989#pullrequestreview-2148682346 and bumps Fuchsia. This includes the quality-of-life improvements for developers in https://fxrev.dev/1061894. It also removes the wasm target, which should speed up the build a little. The new name of the builder is `x86_64-fuchsia` because I think `x86_64-gnu-fuchsia` would be confusing and put too much emphasis on the host target. (In terms of triples, we are targeting `x86_64-unknown-fuchsia` from `x86_64-unknown-linux-gnu`.) Someone on the infra team should weigh in here. After this lands, we should update the docs in the rustc-dev-guide again. cc `@lqd` r? t-infra try-job: x86_64-fuchsia
This commit is contained in:
commit
367a80ce9e
@ -1,5 +1,6 @@
|
||||
# This job builds a toolchain capable of building Fuchsia, and then builds
|
||||
# Fuchsia. See the build-fuchsia.sh script in this directory for more details.
|
||||
# Fuchsia as an integration test of the toolchain. See the build-fuchsia.sh
|
||||
# script in this directory for more details.
|
||||
|
||||
FROM ubuntu:22.04
|
||||
|
||||
@ -24,7 +25,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Duplicated in dist-various-2 Dockerfile.
|
||||
# FIXME: Move to canonical triple
|
||||
ENV \
|
||||
AR_x86_64_unknown_fuchsia=x86_64-unknown-fuchsia-ar \
|
||||
CC_x86_64_unknown_fuchsia=x86_64-unknown-fuchsia-clang \
|
||||
@ -48,10 +48,6 @@ ENV CARGO_TARGET_X86_64_UNKNOWN_FUCHSIA_RUSTFLAGS \
|
||||
|
||||
ENV TARGETS=x86_64-unknown-fuchsia
|
||||
ENV TARGETS=$TARGETS,x86_64-unknown-linux-gnu
|
||||
ENV TARGETS=$TARGETS,wasm32-unknown-unknown
|
||||
|
||||
# Fuchsia clang does not have wasm target enabled, use system clang.
|
||||
ENV CC_wasm32_unknown_unknown=clang-15
|
||||
|
||||
COPY scripts/sccache.sh /scripts/
|
||||
RUN sh /scripts/sccache.sh
|
||||
@ -76,4 +72,4 @@ ENV RUST_CONFIGURE_ARGS \
|
||||
--set target.x86_64-unknown-fuchsia.linker=/usr/local/bin/ld.lld
|
||||
ENV SCRIPT \
|
||||
python3 ../x.py install --target $TARGETS compiler/rustc library/std clippy && \
|
||||
bash ../src/ci/docker/host-x86_64/x86_64-gnu-integration/build-fuchsia.sh
|
||||
bash ../src/ci/docker/host-x86_64/x86_64-fuchsia/build-fuchsia.sh
|
@ -5,14 +5,14 @@
|
||||
#
|
||||
# You may run this script locally using Docker with the following command:
|
||||
#
|
||||
# $ src/ci/docker/run.sh x86_64-gnu-integration
|
||||
# $ src/ci/docker/run.sh x86_64-fuchsia
|
||||
#
|
||||
# Alternatively, from within the container with --dev, assuming you have made it
|
||||
# as far as building the toolchain with the above command:
|
||||
#
|
||||
# $ src/ci/docker/run.sh --dev x86_64-gnu-integration
|
||||
# $ src/ci/docker/run.sh --dev x86_64-fuchsia
|
||||
# docker# git config --global --add safe.directory /checkout/obj/fuchsia
|
||||
# docker# ../src/ci/docker/host-x86_64/x86_64-gnu-integration/build-fuchsia.sh
|
||||
# docker# ../src/ci/docker/host-x86_64/x86_64-fuchsia/build-fuchsia.sh
|
||||
#
|
||||
# Also see the docs in the rustc-dev-guide for more info:
|
||||
# https://github.com/rust-lang/rustc-dev-guide/pull/1989
|
||||
@ -21,7 +21,7 @@ set -euf -o pipefail
|
||||
|
||||
# Set this variable to 1 to disable updating the Fuchsia checkout. This is
|
||||
# useful for making local changes. You can find the Fuchsia checkout in
|
||||
# `obj/x86_64-gnu-integration/fuchsia` in your local checkout after running this
|
||||
# `obj/x86_64-fuchsia/fuchsia` in your local checkout after running this
|
||||
# job for the first time.
|
||||
KEEP_CHECKOUT=
|
||||
|
||||
@ -35,7 +35,7 @@ PICK_REFS=()
|
||||
# commit hash of fuchsia.git and some other repos in the "monorepo" checkout, in
|
||||
# addition to versions of prebuilts. It should be bumped regularly by the
|
||||
# Fuchsia team – we aim for every 1-2 months.
|
||||
INTEGRATION_SHA=737ebdd83afa47b742ca8325fad0176952fcefbd
|
||||
INTEGRATION_SHA=d1d2f20efe46e22be179953dd6726c96eced54ab
|
||||
|
||||
checkout=fuchsia
|
||||
jiri=.jiri_root/bin/jiri
|
@ -208,6 +208,13 @@ auto:
|
||||
- image: test-various
|
||||
<<: *job-linux-4c
|
||||
|
||||
- image: x86_64-fuchsia
|
||||
# Only run this job on the nightly channel. Fuchsia requires
|
||||
# nightly features to compile, and this job would fail if
|
||||
# executed on beta and stable.
|
||||
only_on_channel: nightly
|
||||
<<: *job-linux-8c
|
||||
|
||||
- image: x86_64-gnu
|
||||
<<: *job-linux-4c
|
||||
|
||||
@ -229,13 +236,6 @@ auto:
|
||||
- image: x86_64-gnu-aux
|
||||
<<: *job-linux-4c
|
||||
|
||||
- image: x86_64-gnu-integration
|
||||
# Only run this job on the nightly channel. Fuchsia requires
|
||||
# nightly features to compile, and this job would fail if
|
||||
# executed on beta and stable.
|
||||
only_on_channel: nightly
|
||||
<<: *job-linux-8c
|
||||
|
||||
- image: x86_64-gnu-debug
|
||||
<<: *job-linux-4c
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user