[libcxx-commits] [libcxx] 58d4ebb - [libcxx][CMake] Use the right variable in the C library error message (#138458)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue May 6 13:07:52 PDT 2025


Author: Raul Tambre
Date: 2025-05-06T16:07:49-04:00
New Revision: 58d4ebb29fe6b0faf543463b54130cba61b5d5d5

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

LOG: [libcxx][CMake] Use the right variable in the C library error message (#138458)

Fixes: 3b78dfa10c4b77581cc29c4510aefe919ae660ba

Added: 
    

Modified: 
    libcxx/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libcxx/CMakeLists.txt b/libcxx/CMakeLists.txt
index ebaa6e9fd0e97..ac5aece3281a4 100644
--- a/libcxx/CMakeLists.txt
+++ b/libcxx/CMakeLists.txt
@@ -230,7 +230,7 @@ option(LIBCXX_USE_COMPILER_RT "Use compiler-rt instead of libgcc" OFF)
 set(LIBCXX_SUPPORTED_C_LIBRARIES system llvm-libc)
 set(LIBCXX_LIBC "system" CACHE STRING "Specify C library to use. Supported values are ${LIBCXX_SUPPORTED_C_LIBRARIES}.")
 if (NOT "${LIBCXX_LIBC}" IN_LIST LIBCXX_SUPPORTED_C_LIBRARIES)
-  message(FATAL_ERROR "Unsupported C library: '${LIBCXX_CXX_ABI}'. Supported values are ${LIBCXX_SUPPORTED_C_LIBRARIES}.")
+  message(FATAL_ERROR "Unsupported C library: '${LIBCXX_LIBC}'. Supported values are ${LIBCXX_SUPPORTED_C_LIBRARIES}.")
 endif()
 
 # ABI Library options ---------------------------------------------------------


        


More information about the libcxx-commits mailing list