@@ -54,6 +54,8 @@ pub struct MiriConfig {
54
54
/// Rate of spurious failures for compare_exchange_weak atomic operations,
55
55
/// between 0.0 and 1.0, defaulting to 0.8 (80% chance of failure).
56
56
pub cmpxchg_weak_failure_rate : f64 ,
57
+ /// Panic when unsupported syscalls are encountered
58
+ pub panic_on_unsupported_syscalls : bool ,
57
59
}
58
60
59
61
impl Default for MiriConfig {
@@ -73,6 +75,7 @@ impl Default for MiriConfig {
73
75
track_raw : false ,
74
76
data_race_detector : true ,
75
77
cmpxchg_weak_failure_rate : 0.8 ,
78
+ panic_on_unsupported_syscalls : false ,
76
79
}
77
80
}
78
81
}
@@ -92,8 +95,8 @@ pub fn create_ecx<'mir, 'tcx: 'mir>(
92
95
tcx,
93
96
rustc_span:: source_map:: DUMMY_SP ,
94
97
param_env,
95
- Evaluator :: new ( config. communicate , config. validate , layout_cx) ,
96
- MemoryExtra :: new ( & config) ,
98
+ Evaluator :: new ( config. communicate , config. validate , config . panic_on_unsupported_syscalls , layout_cx) ,
99
+ MemoryExtra :: new ( & config)
97
100
) ;
98
101
// Complete initialization.
99
102
EnvVars :: init ( & mut ecx, config. excluded_env_vars ) ?;
0 commit comments