@@ -14,10 +14,10 @@ python3 ../x.py build --target=$PGO_HOST --host=$PGO_HOST \
14
14
--llvm-profile-generate
15
15
16
16
# 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
21
21
22
22
# Merge the profile data we gathered for LLVM
23
23
# 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 \
37
37
--rust-profile-generate=/tmp/rustc-pgo
38
38
39
39
# 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
44
44
45
45
cp -r /tmp/rustc-perf ./
46
46
chown -R $( whoami) : ./rustc-perf
0 commit comments