Skip to content

Commit c13e35e

Browse files
Take crate-type into account when computing symbol export list.
1 parent 6713736 commit c13e35e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_trans/back/linker.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ impl<'a> Linker for EmLinker<'a> {
747747
fn exported_symbols(tcx: TyCtxt, crate_type: CrateType) -> Vec<String> {
748748
let mut symbols = Vec::new();
749749

750-
let export_threshold = symbol_export::threshold(tcx);
750+
let export_threshold = symbol_export::crates_export_threshold(&[crate_type]);
751751
for &(ref name, _, level) in tcx.exported_symbols(LOCAL_CRATE).iter() {
752752
if level.is_below_threshold(export_threshold) {
753753
symbols.push(name.clone());

0 commit comments

Comments
 (0)