Skip to content

Commit

Permalink
TestRustcBootstrap - 1.54 support (success)
Browse files Browse the repository at this point in the history
  • Loading branch information
thepowersgang committed Feb 7, 2022
1 parent 3e34653 commit 1890905
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion TestRustcBootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ elif [[ "$RUSTC_VERSION" == "1.19.0" ]]; then
elif [[ "$RUSTC_VERSION" == "1.39.0" ]]; then
RUSTC_VERSION_NEXT=1.40.0
RUN_RUSTC_SUF=-1.39.0
elif [[ "$RUSTC_VERSION" == "1.54.0" ]]; then
RUSTC_VERSION_NEXT=1.55.0
RUN_RUSTC_SUF=-1.54.0
else
echo "Unknown rustc version"
fi
Expand Down Expand Up @@ -47,14 +50,16 @@ cargo = "${PREFIX}bin/cargo"
rustc = "${PREFIX}bin/rustc"
full-bootstrap = true
vendor = true
[llvm]
ninja = false
EOF
echo "--- Running x.py, see ${WORKDIR}mrustc.log for progress"
(cd ${WORKDIR} && mv mrustc build)
cleanup_mrustc() {
(cd ${WORKDIR} && mv build mrustc)
}
trap cleanup_mrustc EXIT
rm -r ${WORKDIR}build/rustc-${RUSTC_VERSION_NEXT}-src/build
rm -rf ${WORKDIR}build/rustc-${RUSTC_VERSION_NEXT}-src/build
(cd ${WORKDIR}build/rustc-${RUSTC_VERSION_NEXT}-src/ && LD_LIBRARY_PATH=${PREFIX}lib/rustlib/${RUSTC_TARGET}/lib ./x.py build --stage 3) > ${WORKDIR}mrustc.log 2>&1
cleanup_mrustc
trap - EXIT
Expand All @@ -72,6 +77,8 @@ cat - > ${WORKDIR}official/rustc-${RUSTC_VERSION_NEXT}-src/config.toml <<EOF
[build]
full-bootstrap = true
vendor = true
[llvm]
ninja = false
EOF
echo "--- Running x.py, see ${WORKDIR}official.log for progress"
(cd ${WORKDIR} && mv official build)
Expand Down

0 comments on commit 1890905

Please sign in to comment.