Skip to content

Commit 1631b91

Browse files
committed
Auto merge of rust-lang#105609 - bjorn3:shrink_rustc_dev, r=jyn514
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#103538
2 parents 8bc84fd + 3c0d6b3 commit 1631b91

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ extern crate rustc_session;
5454
extern crate rustc_span;
5555
extern crate rustc_target;
5656

57+
// Necessary to pull in object code as the rest of the rustc crates are shipped only as rmeta
58+
// files.
59+
#[allow(unused_extern_crates)]
60+
extern crate rustc_driver;
61+
5762
mod borrow_tracker;
5863
mod clock;
5964
mod concurrency;

0 commit comments

Comments
 (0)