Skip to content

Commit 8800a9e

Browse files
committed
Set the correct arch for arm64.
The triple should use aarch64 instead of arm64.
1 parent 2dc7942 commit 8800a9e

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

cmake/GetTriplet.cmake

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ function(get_host_triplet triplet)
22
set(host_arch ${CMAKE_SYSTEM_PROCESSOR})
33
if(host_arch STREQUAL "x86")
44
set(host_arch "i686")
5-
endif()
6-
if(host_arch STREQUAL "amd64")
5+
elseif(host_arch STREQUAL "amd64")
76
set(host_arch "x86_64")
7+
elseif(host_arch STREQUAL "arm64")
8+
set(host_arch "aarch64")
89
endif()
910

1011
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
@@ -31,9 +32,10 @@ function(get_build_triplet triplet)
3132
set(host_arch ${CMAKE_HOST_SYSTEM_PROCESSOR})
3233
if(host_arch STREQUAL "x86")
3334
set(host_arch "i686")
34-
endif()
35-
if(host_arch STREQUAL "amd64")
35+
elseif(host_arch STREQUAL "amd64")
3636
set(host_arch "x86_64")
37+
elseif(host_arch STREQUAL "arm64")
38+
set(host_arch "aarch64")
3739
endif()
3840

3941
if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Linux")

0 commit comments

Comments
 (0)