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

Raul Tambre via libcxx-commits libcxx-commits at lists.llvm.org
Sun May 4 09:46:35 PDT 2025


https://github.com/tambry created https://github.com/llvm/llvm-project/pull/138458

Fixes: 3b78dfa10c4b77581cc29c4510aefe919ae660ba

>From b826294ab4423f37f2df9b3ff3123d5a9c21b9ff Mon Sep 17 00:00:00 2001
From: Raul Tambre <raul at tambre.ee>
Date: Sun, 4 May 2025 18:52:25 +0300
Subject: [PATCH] [libcxx][CMake] Use the right variable in the C library error
 message

Fixes: 3b78dfa10c4b77581cc29c4510aefe919ae660ba
---
 libcxx/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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