about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f246182b..d7c6c3be 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -230,7 +230,11 @@ elseif(ARM64)
     #add_definitions(-pipe -march=native)
 endif()
 if(ARM_DYNAREC)
-    set(CMAKE_ASM_FLAGS  "-pipe -mcpu=generic-armv8-a+lse+rdma+crc+crypto")
+    if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
+    set(CMAKE_ASM_FLAGS  "-pipe -mcpu=generic -march=-armv8.2-a+crc+crypto")
+    else()
+        set(CMAKE_ASM_FLAGS  "-pipe -mcpu=generic-armv8-a+lse+rdma+crc+crypto")
+    endif()
 endif()
 if(ANDROID)
     add_definitions(-DANDROID)