File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,12 @@ use datafusion::error::Result;
2020
2121use clap:: { Parser , Subcommand } ;
2222
23- #[ cfg( all( feature = "snmalloc" , not( feature = "mimalloc" ) ) ) ]
23+ #[ cfg( all( feature = "snmalloc" , feature = "mimalloc" ) ) ]
24+ compile_error ! (
25+ "feature \" snmalloc\" and feature \" mimalloc\" cannot be enabled at the same time"
26+ ) ;
27+
28+ #[ cfg( feature = "snmalloc" ) ]
2429#[ global_allocator]
2530static ALLOC : snmalloc_rs:: SnMalloc = snmalloc_rs:: SnMalloc ;
2631
Original file line number Diff line number Diff line change @@ -21,7 +21,12 @@ use clap::{Parser, Subcommand};
2121use datafusion:: error:: Result ;
2222use datafusion_benchmarks:: imdb;
2323
24- #[ cfg( all( feature = "snmalloc" , not( feature = "mimalloc" ) ) ) ]
24+ #[ cfg( all( feature = "snmalloc" , feature = "mimalloc" ) ) ]
25+ compile_error ! (
26+ "feature \" snmalloc\" and feature \" mimalloc\" cannot be enabled at the same time"
27+ ) ;
28+
29+ #[ cfg( feature = "snmalloc" ) ]
2530#[ global_allocator]
2631static ALLOC : snmalloc_rs:: SnMalloc = snmalloc_rs:: SnMalloc ;
2732
You can’t perform that action at this time.
0 commit comments