#1026 Probably fixed iOS build.

This commit is contained in:
XMRig
2019-06-03 18:40:12 +07:00
parent bd5bfb5c6d
commit 68adb300a9
3 changed files with 14 additions and 2 deletions

View File

@@ -66,7 +66,7 @@ void *xmrig::VirtualMemory::allocateLargePagesMemory(size_t size)
void xmrig::VirtualMemory::flushInstructionCache(void *p, size_t size)
{
# ifndef __FreeBSD__
# ifdef HAVE_BUILTIN_CLEAR_CACHE
__builtin___clear_cache(reinterpret_cast<char*>(p), reinterpret_cast<char*>(p) + size);
# endif
}