Skip to content

Commit 0c55b04

Browse files
committed
WIP performance test
1 parent b3fd7ad commit 0c55b04

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/bootstrap/bin/rustc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ fn main() {
7474
if let Some(profile) = env::var_os("RUSTC_TUNE_COMPILER_CODEGEN_UNITS") {
7575
let cgus = match crate_name {
7676
// This crate is large and at the tail of the compiler crates, give it extra CGUs.
77-
"rustc_query_impl" => Some(96),
77+
//"rustc_query_impl" => Some(96),
7878
// This compiles after all other crates so give it default CGUs to speed it up.
7979
"rustc_driver" => None,
8080
_ => {

src/bootstrap/builder.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1885,10 +1885,7 @@ impl<'a> Builder<'a> {
18851885
cargo.env(profile_var("CODEGEN_UNITS"), n.to_string());
18861886
}
18871887
(Mode::Rustc, _, _) => {
1888-
cargo.env(
1889-
"RUSTC_TUNE_COMPILER_CODEGEN_UNITS",
1890-
if self.config.rust_codegen_units_fast { "fast" } else { "1" },
1891-
);
1888+
cargo.env("RUSTC_TUNE_COMPILER_CODEGEN_UNITS", "fast");
18921889
}
18931890
_ => {
18941891
// Don't set anything

0 commit comments

Comments
 (0)