@@ -748,6 +748,9 @@ pub struct TargetOptions {
748
748
/// wasm32 where the whole program either has simd or not.
749
749
pub simd_types_indirect : bool ,
750
750
751
+ /// Pass a list of symbol which should be exported in the dylib to the linker.
752
+ pub limit_rdylib_exports : bool ,
753
+
751
754
/// If set, have the linker export exactly these symbols, instead of using
752
755
/// the usual logic to figure this out from the crate itself.
753
756
pub override_export_symbols : Option < Vec < String > > ,
@@ -843,6 +846,7 @@ impl Default for TargetOptions {
843
846
emit_debug_gdb_scripts : true ,
844
847
requires_uwtable : false ,
845
848
simd_types_indirect : true ,
849
+ limit_rdylib_exports : true ,
846
850
override_export_symbols : None ,
847
851
merge_functions : MergeFunctions :: Aliases ,
848
852
target_mcount : "mcount" . to_string ( ) ,
@@ -1149,6 +1153,7 @@ impl Target {
1149
1153
key ! ( emit_debug_gdb_scripts, bool ) ;
1150
1154
key ! ( requires_uwtable, bool ) ;
1151
1155
key ! ( simd_types_indirect, bool ) ;
1156
+ key ! ( limit_rdylib_exports, bool ) ;
1152
1157
key ! ( override_export_symbols, opt_list) ;
1153
1158
key ! ( merge_functions, MergeFunctions ) ?;
1154
1159
key ! ( target_mcount) ;
@@ -1364,6 +1369,7 @@ impl ToJson for Target {
1364
1369
target_option_val ! ( emit_debug_gdb_scripts) ;
1365
1370
target_option_val ! ( requires_uwtable) ;
1366
1371
target_option_val ! ( simd_types_indirect) ;
1372
+ target_option_val ! ( limit_rdylib_exports) ;
1367
1373
target_option_val ! ( override_export_symbols) ;
1368
1374
target_option_val ! ( merge_functions) ;
1369
1375
target_option_val ! ( target_mcount) ;
0 commit comments