From ac5b53a5a8d20e21e261388cbbf241c48602e824 Mon Sep 17 00:00:00 2001 From: Jim Harris Date: Wed, 15 Jun 2022 18:35:16 +0000 Subject: [PATCH] configure: don't allow --with-fio and --disable-examples These options are mutually exclusive - fio plugins are part of the examples directory hierarchy, so it is confusing to express --with-fio and not see the fio plugins get built. Signed-off-by: Jim Harris Change-Id: I1e30db1d99d317f8c22318e7ae2d3dd461f18a42 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/13055 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Reviewed-by: Paul Luse Reviewed-by: Changpeng Liu Reviewed-by: Thanos Makatos Reviewed-by: Ben Walker Tested-by: SPDK CI Jenkins --- configure | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure b/configure index 5c3716316..87d016c73 100755 --- a/configure +++ b/configure @@ -774,6 +774,11 @@ if [[ "${CONFIG[ASAN]}" = "y" && "${CONFIG[TSAN]}" = "y" ]]; then exit 1 fi +if [[ "${CONFIG[FIO_PLUGIN]}" = "y" && "${CONFIG[EXAMPLES]}" = "n" ]]; then + echo "ERROR: --with-fio and --disable-examples are mutually exclusive." + exit 1 +fi + if [[ $sys_name == "FreeBSD" ]]; then # FreeBSD doesn't support all configurations if [[ "${CONFIG[COVERAGE]}" == "y" ]]; then