[libc-commits] [libc] [libc] Include CheckCXXCompilerFlag when checking compiler features (PR #118862)
Tristan Ross via libc-commits
libc-commits at lists.llvm.org
Thu Dec 5 11:34:27 PST 2024
https://github.com/RossComputerGuy created https://github.com/llvm/llvm-project/pull/118862
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.
>From 33ec79aa0316c9853a38bec999875ec07a4ef003 Mon Sep 17 00:00:00 2001
From: Tristan Ross <tristan.ross at midstall.com>
Date: Thu, 5 Dec 2024 11:31:46 -0800
Subject: [PATCH] [libc] Include CheckCXXCompilerFlag when checking compiler
features
---
libc/cmake/modules/CheckCompilerFeatures.cmake | 2 ++
1 file changed, 2 insertions(+)
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
# ------------------------------------------------------------------------------
More information about the libc-commits
mailing list