From 005c4d1f2321b45f484fab0127db315927c2207b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Tue, 8 Sep 2020 16:25:22 +0200 Subject: Make --enable-hwloc and --enable-linux-affinity mutual exclusive They can not be supported both at the same time. Fail configure step instead of silently only use hwloc. --- Affinity.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Affinity.h') diff --git a/Affinity.h b/Affinity.h index 20d00470..ced161b4 100644 --- a/Affinity.h +++ b/Affinity.h @@ -11,6 +11,10 @@ in the source distribution for its full text. #include "Process.h" #include "ProcessList.h" +#if defined(HAVE_LIBHWLOC) && defined(HAVE_LINUX_AFFINITY) +#error hwlock and linux affinity are mutual exclusive. +#endif + typedef struct Affinity_ { ProcessList* pl; int size; -- cgit v1.2.3