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.
This commit is contained in:
Christian Göttsche
2020-09-08 16:25:22 +02:00
parent f4bb50294a
commit 005c4d1f23
3 changed files with 41 additions and 27 deletions

View File

@ -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;