Skip to content

Commit 1c54b13

Browse files
authored
Improve error handling of unknown arch (#114046)
1 parent a79768e commit 1c54b13

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

eng/native/functions.cmake

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
function(clr_unknown_arch)
2-
if (WIN32)
3-
message(FATAL_ERROR "Only AMD64, ARM64, ARM, I386, LOONGARCH64 and RISCV64 hosts are supported. Found: ${CMAKE_SYSTEM_PROCESSOR}")
4-
elseif(CLR_CROSS_COMPONENTS_BUILD)
5-
message(FATAL_ERROR "Only AMD64, ARM64, I386, LOONGARCH64 and RISCV64 hosts are supported for linux cross-architecture component. Found: ${CMAKE_SYSTEM_PROCESSOR}")
6-
else()
7-
message(FATAL_ERROR "'${CMAKE_SYSTEM_PROCESSOR}' is an unsupported architecture.")
8-
endif()
2+
message(FATAL_ERROR "'${CMAKE_SYSTEM_PROCESSOR}' is an unsupported architecture.")
93
endfunction()
104

115
# C to MASM include file translator

0 commit comments

Comments
 (0)