HWLOC_VERSION not always defined.
This commit is contained in:
parent
4263c6c381
commit
91f732794b
2 changed files with 17 additions and 1 deletions
|
@ -78,7 +78,15 @@ static int showVersion()
|
||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
# if defined(XMRIG_FEATURE_HWLOC)
|
||||||
|
# if defined(HWLOC_VERSION)
|
||||||
printf("hwloc/%s\n", HWLOC_VERSION);
|
printf("hwloc/%s\n", HWLOC_VERSION);
|
||||||
|
# elif HWLOC_API_VERSION >= 0x20000
|
||||||
|
printf("hwloc/2\n");
|
||||||
|
# else
|
||||||
|
printf("hwloc/1\n");
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -110,8 +110,16 @@ void xmrig::BaseConfig::printVersions()
|
||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# ifdef XMRIG_FEATURE_HWLOC
|
|
||||||
|
# if defined(XMRIG_FEATURE_HWLOC)
|
||||||
|
# if defined(HWLOC_VERSION)
|
||||||
snprintf(buf, sizeof buf, "hwloc/%s ", HWLOC_VERSION);
|
snprintf(buf, sizeof buf, "hwloc/%s ", HWLOC_VERSION);
|
||||||
|
# elif HWLOC_API_VERSION >= 0x20000
|
||||||
|
snprintf(buf, sizeof buf, "hwloc/2 ");
|
||||||
|
# else
|
||||||
|
snprintf(buf, sizeof buf, "hwloc/1 ");
|
||||||
|
# endif
|
||||||
|
|
||||||
libs += buf;
|
libs += buf;
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue