about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-08-06 09:12:40 +0200
committerptitSeb <sebastien.chev@gmail.com>2021-08-06 09:12:40 +0200
commitcc307df592cde5168d42dfc832a99ebdc3711917 (patch)
tree4ea5ccc71a50b105b3f894c80810e6232d8718b6
parent2d321bbd335a2d0b21f4389f61ffcd2307d3aee4 (diff)
downloadbox64-cc307df592cde5168d42dfc832a99ebdc3711917.tar.gz
box64-cc307df592cde5168d42dfc832a99ebdc3711917.zip
Try to add generic ARM profile when building with Dynarec (for #82)
-rwxr-xr-xCMakeLists.txt14
1 files changed, 5 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 46d0de51..82d95dc9 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -51,24 +51,20 @@ if(RPI4ARM64)
     add_definitions(-DRPI4ARM64)
     add_definitions(-pipe -march=armv8-a+crc -mtune=cortex-a72)
     set(CMAKE_ASM_FLAGS  "-pipe -march=armv8-a+crc -mtune=cortex-a72")
-endif()
-
-if(RK3326)
+elif(RK3326)
     add_definitions(-DRK3326)
     add_definitions(-pipe -march=armv8-a+crc+simd+crypto -mcpu=cortex-a35+crypto)
     set(CMAKE_ASM_FLAGS  "-pipe -march=armv8-a+crc+simd+crypto -mcpu=cortex-a35+crypto")
-endif()
-
-if(RK3399)
+elif(RK3399)
     add_definitions(-DRK3399)
     add_definitions(-pipe -march=armv8-a+crc+simd+crypto -mcpu=cortex-a72+crypto)
     set(CMAKE_ASM_FLAGS  "-pipe -march=armv8-a+crc+simd+crypto -mcpu=cortex-a72+crypto")
-endif()
-
-if(TEGRAX1)
+elif(TEGRAX1)
     add_definitions(-DTEGRAX1)
     add_definitions(-pipe -march=armv8-a+crc+simd+crypto -mcpu=cortex-a57+crypto)
     set(CMAKE_ASM_FLAGS  "-pipe -march=armv8-a+crc+simd+crypto -mcpu=cortex-a57+crypto")
+elif(ARM_DYNAREC)
+    set(CMAKE_ASM_FLAGS  "-pipe -march=armv8-a+crc+simd+crypto")
 endif()
 
 if(NOGIT)