Apache DataFusion SQL Query Engine
Produce clear error message when build runs with conflicting features (#11895)
Piotr Findeisen193955e0ec40
diff --git a/benchmarks/src/bin/dfbench.rs b/benchmarks/src/bin/dfbench.rsindex 441b6cdc02..9ce6848a06 100644--- a/benchmarks/src/bin/dfbench.rs+++ b/benchmarks/src/bin/dfbench.rs@@ -20,6 +20,11 @@ use datafusion::error::Result;use structopt::StructOpt;+#[cfg(all(feature = "snmalloc", feature = "mimalloc"))]+compile_error!(+ "feature \"snmalloc\" and feature \"mimalloc\" cannot be enabled at the same time"+);+#[cfg(feature = "snmalloc")]#[global_allocator]static ALLOC: snmalloc_rs::SnMalloc = snmalloc_rs::SnMalloc;diff --git a/benchmarks/src/bin/tpch.rs b/benchmarks/src/bin/tpch.rsindex fc0f4ca061..3270b082cf 100644--- a/benchmarks/src/bin/tpch.rs+++ b/benchmarks/src/bin/tpch.rs@@ -21,6 +21,11 @@ use datafusion::error::Result;use datafusion_benchmarks::tpch;use structopt::StructOpt;+#[cfg(all(feature = "snmalloc", feature = "mimalloc"))]+compile_error!(+ "feature \"snmalloc\" and feature \"mimalloc\" cannot be enabled at the same time"+);+#[cfg(feature = "snmalloc")]#[global_allocator]static ALLOC: snmalloc_rs::SnMalloc = snmalloc_rs::SnMalloc;