[PATCH] D152622: [CMake] Add missing CheckCSourceCompiles include

Sam James via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 10 08:46:02 PDT 2023


thesamesam created this revision.
thesamesam added a reviewer: mgorny.
Herald added a subscriber: ekilmer.
Herald added a project: All.
thesamesam requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Fails with cmake-3.27_rc1 otherwise:

  CMake Error at /var/tmp/portage/sys-libs/libcxxabi-17.0.0_pre20230609/work/llvm/cmake/modules/HandleLLVMOptions.cmake:821 (CHECK_C_SOURCE_COMPILES):
    Unknown CMake command "CHECK_C_SOURCE_COMPILES".
  Call Stack (most recent call first):
    CMakeLists.txt:156 (include)

Needed for CHECK_C_SOURCE_COMPILES.

Bug: https://bugs.gentoo.org/908233


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D152622

Files:
  llvm/cmake/modules/HandleLLVMOptions.cmake


Index: llvm/cmake/modules/HandleLLVMOptions.cmake
===================================================================
--- llvm/cmake/modules/HandleLLVMOptions.cmake
+++ llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -12,6 +12,7 @@
 include(CheckCCompilerFlag)
 include(CheckCXXCompilerFlag)
 include(CheckSymbolExists)
+include(CheckCSourceCompiles)
 include(CMakeDependentOption)
 include(LLVMProcessSources)
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152622.530214.patch
Type: text/x-patch
Size: 411 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230610/aa12c682/attachment.bin>


More information about the llvm-commits mailing list