From 14809949d39c04d486c62163dc422fbd846ab795 Mon Sep 17 00:00:00 2001 From: Nikolay Igotti Date: Mon, 3 Feb 2020 13:49:55 +0300 Subject: [PATCH] Fix build on MIPS. (#3815) --- runtime/src/main/cpp/Atomic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/main/cpp/Atomic.h b/runtime/src/main/cpp/Atomic.h index 40510582901..a40d24c023f 100644 --- a/runtime/src/main/cpp/Atomic.h +++ b/runtime/src/main/cpp/Atomic.h @@ -41,7 +41,7 @@ ALWAYS_INLINE inline bool compareAndSet(volatile T* where, T expectedValue, T ne #pragma clang diagnostic push -#if (KONAN_ANDROID || KONAN_IOS || KONAN_WATCHOS) && (KONAN_ARM32 || KONAN_X86) +#if (KONAN_ANDROID || KONAN_IOS || KONAN_WATCHOS || KONAN_LINUX) && (KONAN_ARM32 || KONAN_X86 || KONAN_MIPS32 || KONAN_MIPSEL32) // On 32-bit Android clang generates library calls for "large" atomic operations // and warns about "significant performance penalty". See more details here: // https://github.com/llvm/llvm-project/blob/ce56e1a1cc5714f4af5675dd963cfebed766d9e1/clang/lib/CodeGen/CGAtomic.cpp#L775