@@ -14,10 +14,10 @@ python3 ../x.py build --target=$PGO_HOST --host=$PGO_HOST \
1414 --llvm-profile-generate
1515
1616# Profile libcore compilation in opt-level=0 and opt-level=3
17- RUSTC_BOOTSTRAP=1 ./build/$PGO_HOST /stage2/bin/rustc --edition=2018 \
18- --crate-type=lib ../library/core/src/lib.rs
19- RUSTC_BOOTSTRAP=1 ./build/$PGO_HOST /stage2/bin/rustc --edition=2018 \
20- --crate-type=lib -Copt-level=3 ../library/core/src/lib.rs
17+ RUSTC_BOOTSTRAP=1 ./build/$PGO_HOST /stage2/bin/rustc \
18+ --edition=2021 -- crate-type=lib ../library/core/src/lib.rs
19+ RUSTC_BOOTSTRAP=1 ./build/$PGO_HOST /stage2/bin/rustc \
20+ --edition=2021 -- crate-type=lib -Copt-level=3 ../library/core/src/lib.rs
2121
2222# Merge the profile data we gathered for LLVM
2323# Note that this uses the profdata from the clang we used to build LLVM,
@@ -37,10 +37,10 @@ python3 ../x.py build --target=$PGO_HOST --host=$PGO_HOST \
3737 --rust-profile-generate=/tmp/rustc-pgo
3838
3939# Profile libcore compilation in opt-level=0 and opt-level=3
40- RUSTC_BOOTSTRAP=1 ./build/$PGO_HOST /stage2/bin/rustc --edition=2018 \
41- --crate-type=lib ../library/core/src/lib.rs
42- RUSTC_BOOTSTRAP=1 ./build/$PGO_HOST /stage2/bin/rustc --edition=2018 \
43- --crate-type=lib -Copt-level=3 ../library/core/src/lib.rs
40+ RUSTC_BOOTSTRAP=1 ./build/$PGO_HOST /stage2/bin/rustc \
41+ --edition=2021 -- crate-type=lib ../library/core/src/lib.rs
42+ RUSTC_BOOTSTRAP=1 ./build/$PGO_HOST /stage2/bin/rustc \
43+ --edition=2021 -- crate-type=lib -Copt-level=3 ../library/core/src/lib.rs
4444
4545cp -r /tmp/rustc-perf ./
4646chown -R $( whoami) : ./rustc-perf
0 commit comments