Skip to content

Commit

Permalink
Rollup merge of rust-lang#95927 - Kobzol:ci-pgo-libcore, r=lqd
Browse files Browse the repository at this point in the history
CI: do not compile libcore twice when performing LLVM PGO

I forgot the delete the first compilation when modifying this file in a previous PR.

r? ``@lqd``
  • Loading branch information
Dylan-DPC authored Apr 11, 2022
2 parents c641fed + aeb3df7 commit 633e004
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/ci/pgo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,6 @@ python3 ../x.py build --target=$PGO_HOST --host=$PGO_HOST \
--stage 2 library/std \
--llvm-profile-generate

# Profile libcore compilation in opt-level=0 and opt-level=3
RUSTC_BOOTSTRAP=1 ./build/$PGO_HOST/stage2/bin/rustc \
--edition=2021 --crate-type=lib ../library/core/src/lib.rs
RUSTC_BOOTSTRAP=1 ./build/$PGO_HOST/stage2/bin/rustc \
--edition=2021 --crate-type=lib -Copt-level=3 ../library/core/src/lib.rs

# Compile rustc perf
cp -r /tmp/rustc-perf ./
chown -R $(whoami): ./rustc-perf
Expand Down

0 comments on commit 633e004

Please sign in to comment.