File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -214,6 +214,9 @@ check-cfg = [
214214 ' cfg(pulley_disable_interp_simd)' ,
215215 ' cfg(arc_try_new)' ,
216216
217+ # Activated by `cargo fuzz` when building for fuzzing.
218+ ' cfg(fuzzing)' ,
219+
217220 # When enabled, `cfg(gc_zeal)` activates aggressive GC debugging assertions.
218221 ' cfg(gc_zeal)' ,
219222]
Original file line number Diff line number Diff line change 1+ fn main ( ) {
2+ if cfg ! ( fuzzing) {
3+ println ! ( "cargo:rustc-cfg=gc_zeal" ) ;
4+ }
5+ }
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ fn main() {
3434 custom_cfg ( "has_virtual_memory" , has_virtual_memory) ;
3535 custom_cfg ( "has_custom_sync" , has_custom_sync) ;
3636 custom_cfg ( "has_host_compiler_backend" , has_host_compiler_backend) ;
37+ custom_cfg ( "gc_zeal" , cfg ! ( fuzzing) ) ;
3738
3839 // If this OS isn't supported and no debug-builtins or if Cranelift doesn't support
3940 // the host or there's no need to build these helpers.
You can’t perform that action at this time.
0 commit comments