[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:41:07 PST 2024
https://github.com/RossComputerGuy updated https://github.com/llvm/llvm-project/pull/118862
>From 84e0dde45376d01bc8fe8a59e4ae0911633b68c4 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/CMakeLists.txt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libc/CMakeLists.txt b/libc/CMakeLists.txt
index 5196735bef4e76..045eb139022083 100644
--- a/libc/CMakeLists.txt
+++ b/libc/CMakeLists.txt
@@ -50,6 +50,8 @@ set(LIBC_NAMESPACE ${default_namespace}
CACHE STRING "The namespace to use to enclose internal implementations. Must start with '__llvm_libc'."
)
+include(CheckCXXCompilerFlag)
+
# We will build the GPU utilities if we are not doing a runtimes build.
option(LIBC_BUILD_GPU_LOADER "Always build the GPU loader utilities" OFF)
if(LIBC_BUILD_GPU_LOADER OR ((NOT LLVM_RUNTIMES_BUILD) AND LLVM_LIBC_GPU_BUILD))
More information about the libc-commits
mailing list