From 3337f5ac43d0070127d635df6e230cb9a553bfc1 Mon Sep 17 00:00:00 2001 From: XMRig Date: Sun, 3 Feb 2019 20:43:49 +0700 Subject: [PATCH] Fix ARM builds with clang. --- cmake/cn-gpu.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/cn-gpu.cmake b/cmake/cn-gpu.cmake index 804f657b6..81092519b 100644 --- a/cmake/cn-gpu.cmake +++ b/cmake/cn-gpu.cmake @@ -3,7 +3,7 @@ if (WITH_CN_GPU AND CMAKE_SIZEOF_VOID_P EQUAL 8) if (XMRIG_ARM) set(CN_GPU_SOURCES src/crypto/cn_gpu_arm.cpp) - if (CMAKE_CXX_COMPILER_ID MATCHES GNU) + if (CMAKE_CXX_COMPILER_ID MATCHES GNU OR CMAKE_CXX_COMPILER_ID MATCHES Clang) set_source_files_properties(src/crypto/cn_gpu_arm.cpp PROPERTIES COMPILE_FLAGS "-O3") endif() else()