From 9d296c7f022c634c2a2214b11cb22dd928ea77b2 Mon Sep 17 00:00:00 2001 From: SChernykh <15806605+SChernykh@users.noreply.github.com> Date: Tue, 3 Mar 2026 08:36:24 +0100 Subject: [PATCH] Fixed clang arm64 builds --- src/crypto/randomx/intrin_portable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/randomx/intrin_portable.h b/src/crypto/randomx/intrin_portable.h index 857ea7744..8f7e140dc 100644 --- a/src/crypto/randomx/intrin_portable.h +++ b/src/crypto/randomx/intrin_portable.h @@ -577,7 +577,7 @@ inline void* rx_aligned_alloc(size_t size, size_t align) { # define rx_aligned_free(a) free(a) #endif -#ifdef __GNUC__ +#if defined(__GNUC__) && (!defined(__clang__) || __has_builtin(__builtin_prefetch)) #define rx_prefetch_nta(x) __builtin_prefetch((x), 0, 0) #define rx_prefetch_t0(x) __builtin_prefetch((x), 0, 3) #else