mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +00:00
Revert "Use ICF (identical code folding) for building rustc"
This commit is contained in:
parent
ed9173276a
commit
45575d23f3
@ -651,12 +651,6 @@ impl Step for Rustc {
|
||||
panic!("Cannot use and generate PGO profiles at the same time");
|
||||
}
|
||||
|
||||
// With LLD, we can use ICF (identical code folding) to reduce the executable size
|
||||
// of librustc_driver/rustc and to improve i-cache utilization.
|
||||
if builder.config.use_lld {
|
||||
cargo.rustflag("-Clink-args=-Wl,--icf=all");
|
||||
}
|
||||
|
||||
let is_collecting = if let Some(path) = &builder.config.rust_profile_generate {
|
||||
if compiler.stage == 1 {
|
||||
cargo.rustflag(&format!("-Cprofile-generate={}", path));
|
||||
|
@ -122,8 +122,7 @@ ENV RUST_CONFIGURE_ARGS \
|
||||
--set target.x86_64-unknown-linux-gnu.ranlib=/rustroot/bin/llvm-ranlib \
|
||||
--set llvm.thin-lto=true \
|
||||
--set llvm.ninja=false \
|
||||
--set rust.jemalloc \
|
||||
--set rust.use-lld=true
|
||||
--set rust.jemalloc
|
||||
ENV SCRIPT ../src/ci/pgo.sh python3 ../x.py dist \
|
||||
--host $HOSTS --target $HOSTS \
|
||||
--include-default-paths \
|
||||
|
@ -195,7 +195,3 @@ rm -r $BUILD_ARTIFACTS/llvm $BUILD_ARTIFACTS/lld
|
||||
$@ \
|
||||
--rust-profile-use=${RUSTC_PROFILE_MERGED_FILE} \
|
||||
--llvm-profile-use=${LLVM_PROFILE_MERGED_FILE}
|
||||
|
||||
echo "Rustc binary size"
|
||||
ls -la ./build/$PGO_HOST/stage2/bin
|
||||
ls -la ./build/$PGO_HOST/stage2/lib
|
||||
|
Loading…
Reference in New Issue
Block a user