Skip to content

Commit 58d4ebb

Browse files
authored
[libcxx][CMake] Use the right variable in the C library error message (#138458)
Fixes: 3b78dfa
1 parent c7659d8 commit 58d4ebb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ option(LIBCXX_USE_COMPILER_RT "Use compiler-rt instead of libgcc" OFF)
230230
set(LIBCXX_SUPPORTED_C_LIBRARIES system llvm-libc)
231231
set(LIBCXX_LIBC "system" CACHE STRING "Specify C library to use. Supported values are ${LIBCXX_SUPPORTED_C_LIBRARIES}.")
232232
if (NOT "${LIBCXX_LIBC}" IN_LIST LIBCXX_SUPPORTED_C_LIBRARIES)
233-
message(FATAL_ERROR "Unsupported C library: '${LIBCXX_CXX_ABI}'. Supported values are ${LIBCXX_SUPPORTED_C_LIBRARIES}.")
233+
message(FATAL_ERROR "Unsupported C library: '${LIBCXX_LIBC}'. Supported values are ${LIBCXX_SUPPORTED_C_LIBRARIES}.")
234234
endif()
235235

236236
# ABI Library options ---------------------------------------------------------

0 commit comments

Comments
 (0)