[libc] improve error message for unsupported target platforms
authorYannic Bonenberger <yannic.bonenberger@gmail.com>
Wed, 19 Jan 2022 18:34:03 +0000 (10:34 -0800)
committerMichael Jones <michaelrj@google.com>
Wed, 19 Jan 2022 18:39:34 +0000 (10:39 -0800)
Reviewed By: michaelrj

Differential Revision: https://reviews.llvm.org/D116888

libc/CMakeLists.txt

index 6e68246..9546795 100644 (file)
@@ -89,7 +89,7 @@ if(EXISTS "${LIBC_SOURCE_DIR}/config/${LIBC_TARGET_OS}/${LIBC_TARGET_ARCHITECTUR
 elseif(EXISTS "${LIBC_SOURCE_DIR}/config/${LIBC_TARGET_OS}/entrypoints.txt")
   set(entrypoint_file "${LIBC_SOURCE_DIR}/config/${LIBC_TARGET_OS}/entrypoints.txt")
 else()
-  message(FATAL_ERROR "entrypoints.txt file for the target platform not found.")
+  message(FATAL_ERROR "entrypoints.txt file for the target platform '${LIBC_TARGET_OS}/${LIBC_TARGET_ARCHITECTURE}' not found.")
 endif()
 include(${entrypoint_file})