@@ -535,11 +535,11 @@ pub struct MiriMachine<'mir, 'tcx> {
535
535
// The total number of blocks that have been executed.
536
536
pub ( crate ) basic_block_count : u64 ,
537
537
538
- /// Handle of the optional shared object file for external functions.
538
+ /// Handle of the optional shared object file for native functions.
539
539
#[ cfg( target_os = "linux" ) ]
540
- pub external_so_lib : Option < ( libloading:: Library , std:: path:: PathBuf ) > ,
540
+ pub native_lib : Option < ( libloading:: Library , std:: path:: PathBuf ) > ,
541
541
#[ cfg( not( target_os = "linux" ) ) ]
542
- pub external_so_lib : Option < !> ,
542
+ pub native_lib : Option < !> ,
543
543
544
544
/// Run a garbage collector for BorTags every N basic blocks.
545
545
pub ( crate ) gc_interval : u32 ,
@@ -665,7 +665,7 @@ impl<'mir, 'tcx> MiriMachine<'mir, 'tcx> {
665
665
basic_block_count : 0 ,
666
666
clock : Clock :: new ( config. isolated_op == IsolatedOp :: Allow ) ,
667
667
#[ cfg( target_os = "linux" ) ]
668
- external_so_lib : config. external_so_file . as_ref ( ) . map ( |lib_file_path| {
668
+ native_lib : config. native_lib . as_ref ( ) . map ( |lib_file_path| {
669
669
let target_triple = layout_cx. tcx . sess . opts . target_triple . triple ( ) ;
670
670
// Check if host target == the session target.
671
671
if env ! ( "TARGET" ) != target_triple {
@@ -687,7 +687,7 @@ impl<'mir, 'tcx> MiriMachine<'mir, 'tcx> {
687
687
)
688
688
} ) ,
689
689
#[ cfg( not( target_os = "linux" ) ) ]
690
- external_so_lib : config. external_so_file . as_ref ( ) . map ( |_| {
690
+ native_lib : config. native_lib . as_ref ( ) . map ( |_| {
691
691
panic ! ( "loading external .so files is only supported on Linux" )
692
692
} ) ,
693
693
gc_interval : config. gc_interval ,
@@ -802,7 +802,7 @@ impl VisitProvenance for MiriMachine<'_, '_> {
802
802
preemption_rate : _,
803
803
report_progress : _,
804
804
basic_block_count : _,
805
- external_so_lib : _,
805
+ native_lib : _,
806
806
gc_interval : _,
807
807
since_gc : _,
808
808
num_cpus : _,
0 commit comments