File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -192,13 +192,6 @@ impl rustc_driver::Callbacks for MiriCompilerCalls {
192
192
todo ! ( "GenMC mode not yet implemented" ) ;
193
193
} ;
194
194
195
- #[ cfg( target_os = "linux" ) ]
196
- if !config. native_lib . is_empty ( ) && !config. force_old_native_lib {
197
- // FIXME: This should display a diagnostic / warning on error
198
- // SAFETY: No other threads have spawned yet
199
- let _ = unsafe { miri:: init_sv ( ) } ;
200
- }
201
-
202
195
if let Some ( many_seeds) = self . many_seeds . take ( ) {
203
196
assert ! ( config. seed. is_none( ) ) ;
204
197
let exit_code = sync:: IntoDynSyncSend ( AtomicI32 :: new ( rustc_driver:: EXIT_SUCCESS ) ) ;
@@ -802,6 +795,14 @@ fn main() {
802
795
803
796
debug ! ( "rustc arguments: {:?}" , rustc_args) ;
804
797
debug ! ( "crate arguments: {:?}" , miri_config. args) ;
798
+
799
+ #[ cfg( target_os = "linux" ) ]
800
+ if !miri_config. native_lib . is_empty ( ) && !miri_config. force_old_native_lib {
801
+ // FIXME: This should display a diagnostic / warning on error
802
+ // SAFETY: No other threads have spawned yet
803
+ let _ = unsafe { miri:: init_sv ( ) } ;
804
+ }
805
+
805
806
run_compiler_and_exit (
806
807
& rustc_args,
807
808
& mut MiriCompilerCalls :: new ( miri_config, many_seeds, genmc_config) ,
You can’t perform that action at this time.
0 commit comments