diff options
| -rwxr-xr-x | CMakeLists.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 315a927b..437bfa7a 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,10 +6,17 @@ option(RPI4ARM64 "Set to ON if targeting an RaspberryPI4 device with multiarch a option(RK3326 "Set to ON if targeting an Rockchip RK3326 based device" ${RK3326}) option(RK3399 "Set to ON if targeting an Rockchip RK3399 based device" ${RK3399}) option(TEGRAX1 "Set to ON if targeting an Tegra X1 based device" ${TEGRAX1}) +option(LARCH64 "Set to ON if targeting an Loongarch64 based device" ${LARCH64}) option(USE_CCACHE "Set to ON to use ccache if present in the system" ${USE_CCACHE}) option(HAVE_TRACE "Set to ON to have Trace ability (needs ZydisInfo library)" ${HAVE_TRACE}) option(NOLOADADDR "Set to ON to avoid fixing the load address of Box64" OFF) option(NOGIT "Set to ON if not building from a git clone repo (like when building from a zip download from github)" ${NOGIT}) +if(LARCH64) + set(LD80BITS OFF CACHE BOOL "") + message(WARNING ${LD80BITS}) + set(NOALIGN OFF CACHE BOOL "") + set(ARM_DYNAREC OFF CACHE BOOL "") +endif() if(RK3399 OR RPI4ARM64 OR RK3326 OR TEGRAX1) set(LD80BITS OFF CACHE BOOL "") set(NOALIGN OFF CACHE BOOL "") @@ -63,6 +70,10 @@ elseif(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") +elseif(LARCH64) + add_definitions(-DLARCH64) + add_definitions(-pipe) + set(CMAKE_ASM_FLAGS "-pipe") elseif(ARM_DYNAREC) set(CMAKE_ASM_FLAGS "-pipe -march=armv8-a+crc+simd+crypto") endif() |