[libc-commits] [libc] a01523e - [libc] improve error message for unsupported target platforms

Michael Jones via libc-commits libc-commits at lists.llvm.org
Wed Jan 19 10:39:38 PST 2022


Author: Yannic Bonenberger
Date: 2022-01-19T10:39:34-08:00
New Revision: a01523ea9939ba360ddca94786134b91189ce42f

URL: https://github.com/llvm/llvm-project/commit/a01523ea9939ba360ddca94786134b91189ce42f
DIFF: https://github.com/llvm/llvm-project/commit/a01523ea9939ba360ddca94786134b91189ce42f.diff

LOG: [libc] improve error message for unsupported target platforms

Reviewed By: michaelrj

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

Added: 
    

Modified: 
    libc/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libc/CMakeLists.txt b/libc/CMakeLists.txt
index 6e68246d6ceb4..95467959af8da 100644
--- a/libc/CMakeLists.txt
+++ b/libc/CMakeLists.txt
@@ -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})
 


        


More information about the libc-commits mailing list