[libc-commits] [libc] [libc] Include CheckCXXCompilerFlag when checking compiler features (PR #118862)

via libc-commits libc-commits at lists.llvm.org
Thu Dec 5 11:35:04 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Tristan Ross (RossComputerGuy)

<details>
<summary>Changes</summary>

Includes `CheckCXXCompilerFlag` so when building LLVM libc is built standalone, it actually works and doesn't complain about `check_cxx_compiler_flag` not being defined.

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


1 Files Affected:

- (modified) libc/cmake/modules/CheckCompilerFeatures.cmake (+2) 


``````````diff
diff --git a/libc/cmake/modules/CheckCompilerFeatures.cmake b/libc/cmake/modules/CheckCompilerFeatures.cmake
index 862c7ecbd7fdf4..85e1cabd1483e3 100644
--- a/libc/cmake/modules/CheckCompilerFeatures.cmake
+++ b/libc/cmake/modules/CheckCompilerFeatures.cmake
@@ -1,3 +1,5 @@
+include(CheckCXXCompilerFlag)
+
 # ------------------------------------------------------------------------------
 # Compiler features definition and flags
 # ------------------------------------------------------------------------------

``````````

</details>


https://github.com/llvm/llvm-project/pull/118862


More information about the libc-commits mailing list