Fix build.

This commit is contained in:
XMRig 2020-05-09 01:26:05 +07:00
parent 3cbf0dc0ee
commit 7f31f45b6d
No known key found for this signature in database
GPG key ID: 446A53638BE94409

View file

@ -54,6 +54,7 @@ extern int xmrig_ar2_check_sse2();
bool xmrig::argon2::Impl::select(const String &nameHint, bool benchmark)
{
if (!selected) {
# if !defined(XMRIG_ARM) || defined(__x86_64__) || defined(_M_AMD64)
auto hint = nameHint;
if (hint.isEmpty() && !benchmark) {
@ -74,6 +75,7 @@ bool xmrig::argon2::Impl::select(const String &nameHint, bool benchmark)
if (hint.isEmpty() || argon2_select_impl_by_name(hint) == 0) {
argon2_select_impl();
}
# endif
selected = true;
implName = argon2_get_impl_name();