diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2025-03-30 14:23:47 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2025-03-30 14:23:47 +0200 |
| commit | 4ae94c51680417dda33322804372c8b446ef07b7 (patch) | |
| tree | e3274e76a3a57d18880e152e94ac38dbcfb54044 | |
| parent | a429ca70e734270b3d11296fd69e2776bff66653 (diff) | |
| download | box64-4ae94c51680417dda33322804372c8b446ef07b7.tar.gz box64-4ae94c51680417dda33322804372c8b446ef07b7.zip | |
[CI] Another atempted fix for arm64 asm handling
| -rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d7c6c3be..e5e93b95 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -230,10 +230,10 @@ elseif(ARM64) #add_definitions(-pipe -march=native) endif() if(ARM_DYNAREC) - if(CMAKE_C_COMPILER_ID STREQUAL "Clang") - set(CMAKE_ASM_FLAGS "-pipe -mcpu=generic -march=-armv8.2-a+crc+crypto") + if (CMAKE_COMPILER_IS_GNUCC AND CMAKE_C_COMPILER_VERSION GREATER_EQUAL 14.0) + set(CMAKE_ASM_FLAGS "-pipe -mcpu=generic-armv8-a+crc+crypto") else() - set(CMAKE_ASM_FLAGS "-pipe -mcpu=generic-armv8-a+lse+rdma+crc+crypto") + set(CMAKE_ASM_FLAGS "-pipe -mcpu=generic -march=armv8.2-a+crc+crypto") endif() endif() if(ANDROID) |