File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,14 @@ impl ExportedSymbols {
60
60
local_crate. push ( ( "main" . to_string ( ) , SymbolExportLevel :: C ) ) ;
61
61
}
62
62
63
+ if let Some ( id) = scx. sess ( ) . derive_registrar_fn . get ( ) {
64
+ let svh = & scx. link_meta ( ) . crate_hash ;
65
+ let def_id = scx. tcx ( ) . map . local_def_id ( id) ;
66
+ let idx = def_id. index ;
67
+ let registrar = scx. sess ( ) . generate_derive_registrar_symbol ( svh, idx) ;
68
+ local_crate. push ( ( registrar, SymbolExportLevel :: C ) ) ;
69
+ }
70
+
63
71
if scx. sess ( ) . crate_types . borrow ( ) . contains ( & config:: CrateTypeDylib ) {
64
72
local_crate. push ( ( scx. metadata_symbol_name ( ) ,
65
73
SymbolExportLevel :: Rust ) ) ;
@@ -135,8 +143,8 @@ pub fn crate_export_threshold(crate_type: config::CrateType)
135
143
match crate_type {
136
144
config:: CrateTypeExecutable |
137
145
config:: CrateTypeStaticlib |
138
- config:: CrateTypeCdylib => SymbolExportLevel :: C ,
139
146
config:: CrateTypeProcMacro |
147
+ config:: CrateTypeCdylib => SymbolExportLevel :: C ,
140
148
config:: CrateTypeRlib |
141
149
config:: CrateTypeMetadata |
142
150
config:: CrateTypeDylib => SymbolExportLevel :: Rust ,
You can’t perform that action at this time.
0 commit comments