diff options
| author | zhaozhen <345865759@163.com> | 2021-09-26 22:48:28 +0800 |
|---|---|---|
| committer | zhaozhen <345865759@163.com> | 2021-09-26 22:48:28 +0800 |
| commit | 8da46ee30516cfffdfd1bb86c69eec285ae2e806 (patch) | |
| tree | f8f8bf52f12904be0e4d10e769ae66c88a8c073e /CMakeLists.txt | |
| parent | 4cac721e747ab44819925b9140831dab11ca56b6 (diff) | |
| download | box64-8da46ee30516cfffdfd1bb86c69eec285ae2e806.tar.gz box64-8da46ee30516cfffdfd1bb86c69eec285ae2e806.zip | |
add loongarch cmake fix and chinese document
Diffstat (limited to 'CMakeLists.txt')
| -rwxr-xr-x | CMakeLists.txt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 437bfa7a..01898bd2 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,6 @@ 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() @@ -72,8 +71,8 @@ elseif(TEGRAX1) 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") + add_definitions(-pipe -march=loongarch64) + set(CMAKE_ASM_FLAGS "-pipe -march=loongarch64") elseif(ARM_DYNAREC) set(CMAKE_ASM_FLAGS "-pipe -march=armv8-a+crc+simd+crypto") endif() |