diff options
| -rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 26eba18b..cbe57806 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -230,8 +230,12 @@ elseif(ARM64) #add_definitions(-pipe -march=native) endif() if(ARM_DYNAREC) - #putting a random cpu that have 8.2 architecture so assembly can be build. the use of the feature are conditionnal anyway - set(ASMFLAGS -pipe -mcpu=cortex-a76) + if (CMAKE_C_COMPILER_ID STREQUAL "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_LESS "9.0") + set(ASMFLAGS -pipe -march=armv8.2-a+crc+simd+crypto) + else() + #putting a random cpu that have 8.2 architecture so assembly can be build. the use of the feature are conditionnal anyway + set(ASMFLAGS -pipe -mcpu=cortex-a76) + endif() endif() if(ANDROID) add_definitions(-DANDROID) |