[llvm] e3ad708 - [CMake] Add missing CheckCSourceCompiles include
Sam James via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 10 11:21:04 PDT 2023
Author: Sam James
Date: 2023-06-10T19:20:59+01:00
New Revision: e3ad7081ac0752daa380cd7ec58c7909f43826ad
URL: https://github.com/llvm/llvm-project/commit/e3ad7081ac0752daa380cd7ec58c7909f43826ad
DIFF: https://github.com/llvm/llvm-project/commit/e3ad7081ac0752daa380cd7ec58c7909f43826ad.diff
LOG: [CMake] Add missing CheckCSourceCompiles include
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
Reviewed By: mgorny
Differential Revision: https://reviews.llvm.org/D152622
Added:
Modified:
llvm/cmake/modules/HandleLLVMOptions.cmake
Removed:
################################################################################
diff --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake
index b8e9ac9558b37..1c63db51a692b 100644
--- a/llvm/cmake/modules/HandleLLVMOptions.cmake
+++ b/llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -12,6 +12,7 @@ include(HandleLLVMStdlib)
include(CheckCCompilerFlag)
include(CheckCXXCompilerFlag)
include(CheckSymbolExists)
+include(CheckCSourceCompiles)
include(CMakeDependentOption)
include(LLVMProcessSources)
More information about the llvm-commits
mailing list