Skip to content

Commit

Permalink
Auto merge of #105609 - bjorn3:shrink_rustc_dev, r=jyn514
Browse files Browse the repository at this point in the history
Only include metadata for non-dynamic libraries in rustc-dev

The actual object code should be linked from librustc_driver.so, which is still included in rustc-dev. This saves on download time and disk usage.

Fixes rust-lang/rust#103538
  • Loading branch information
bors committed Jan 3, 2023
2 parents 8bc84fd + 3c0d6b3 commit 1631b91
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ extern crate rustc_session;
extern crate rustc_span;
extern crate rustc_target;

// Necessary to pull in object code as the rest of the rustc crates are shipped only as rmeta
// files.
#[allow(unused_extern_crates)]
extern crate rustc_driver;

mod borrow_tracker;
mod clock;
mod concurrency;
Expand Down

0 comments on commit 1631b91

Please sign in to comment.