Skip to content

Commit b020042

Browse files
authored
Enable building cross components from linux-arm64 (#99252)
* Enable building cross components from linux-arm64 * Update error message
1 parent 0df43f2 commit b020042

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

eng/native/configureplatform.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ if(CLR_CMAKE_HOST_OS STREQUAL linux)
2727
endif()
2828
elseif(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL i686)
2929
set(CLR_CMAKE_HOST_UNIX_X86 1)
30+
elseif(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL aarch64)
31+
set(CLR_CMAKE_HOST_UNIX_ARM64 1)
3032
else()
3133
clr_unknown_arch()
3234
endif()

eng/native/functions.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
function(clr_unknown_arch)
22
if (WIN32)
3-
message(FATAL_ERROR "Only AMD64, ARM64, ARM and I386 are supported. Found: ${CMAKE_SYSTEM_PROCESSOR}")
3+
message(FATAL_ERROR "Only AMD64, ARM64, ARM and I386 hosts are supported. Found: ${CMAKE_SYSTEM_PROCESSOR}")
44
elseif(CLR_CROSS_COMPONENTS_BUILD)
5-
message(FATAL_ERROR "Only AMD64, I386 host are supported for linux cross-architecture component. Found: ${CMAKE_SYSTEM_PROCESSOR}")
5+
message(FATAL_ERROR "Only AMD64, ARM64 and I386 hosts are supported for linux cross-architecture component. Found: ${CMAKE_SYSTEM_PROCESSOR}")
66
else()
77
message(FATAL_ERROR "'${CMAKE_SYSTEM_PROCESSOR}' is an unsupported architecture.")
88
endif()

0 commit comments

Comments
 (0)