Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[libcxx][CMake] Use the right variable in the C library error message #138458

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 6, 2025

Conversation

tambry
Copy link
Contributor

@tambry tambry commented May 4, 2025

Fixes: 3b78dfa

@tambry tambry requested a review from petrhosek May 4, 2025 16:46
@tambry tambry self-assigned this May 4, 2025
@tambry tambry requested a review from a team as a code owner May 4, 2025 16:46
@llvmbot llvmbot added the libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. label May 4, 2025
@llvmbot
Copy link
Member

llvmbot commented May 4, 2025

@llvm/pr-subscribers-libcxx

Author: Raul Tambre (tambry)

Changes

Fixes: 3b78dfa


Full diff: https://github.com/llvm/llvm-project/pull/138458.diff

1 Files Affected:

  • (modified) libcxx/CMakeLists.txt (+1-1)
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 ---------------------------------------------------------

@tambry tambry added the cmake Build system in general and CMake in particular label May 4, 2025
@ldionne ldionne merged commit 58d4ebb into llvm:main May 6, 2025
88 checks passed
GeorgeARM pushed a commit to GeorgeARM/llvm-project that referenced this pull request May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmake Build system in general and CMake in particular libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants