Skip to content

Commit 53bb518

Browse files
authored
Simplify an error condition in tryrun.cmake (#82070)
1 parent 9c4ab9e commit 53bb518

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

eng/native/tryrun.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ elseif(TARGET_ARCH_NAME MATCHES "^(armel|arm|armv6|arm64|loongarch64|riscv64|s39
157157
set_cache_value(HAVE_FUNCTIONAL_PTHREAD_ROBUST_MUTEXES_EXITCODE 0)
158158
endif()
159159
else()
160-
message(FATAL_ERROR "Arch is ${TARGET_ARCH_NAME}. Only armel, arm, armv6, arm64, loongarch64, s390x, ppc64le and x86 are supported!")
160+
message(FATAL_ERROR "Unsupported platform. OS: ${CMAKE_SYSTEM_NAME}, arch: ${TARGET_ARCH_NAME}")
161161
endif()
162162

163163
if(TARGET_ARCH_NAME MATCHES "^(x86|s390x|armv6|loongarch64|riscv64|ppc64le)$")

0 commit comments

Comments
 (0)