mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-24 17:16:05 +00:00

If a CMake project doesn't enable the C language, then the CMake FFI and Terminfo find modules will fail their checks for compilation and linking. This commit allows projects to enable only C++ by first checking if a C compiler is set before testing C source compilation; if not, it checks whether C++ compilation succeeds. Fixes #53950
See docs/CMake.html for instructions on how to build LLVM with CMake.