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

via libc-commits libc-commits at lists.llvm.org
Thu Dec 5 13:12:40 PST 2024


Author: Tristan Ross
Date: 2024-12-05T15:12:36-06:00
New Revision: 3a7d1b5c1643881704d3f6bdc6b9b3c7e16b09a8

URL: https://github.com/llvm/llvm-project/commit/3a7d1b5c1643881704d3f6bdc6b9b3c7e16b09a8
DIFF: https://github.com/llvm/llvm-project/commit/3a7d1b5c1643881704d3f6bdc6b9b3c7e16b09a8.diff

LOG: [libc] Include CheckCXXCompilerFlag when checking compiler features (#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.

Added: 
    

Modified: 
    libc/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libc/CMakeLists.txt b/libc/CMakeLists.txt
index 5196735bef4e76..6d48489284faef 100644
--- a/libc/CMakeLists.txt
+++ b/libc/CMakeLists.txt
@@ -7,6 +7,7 @@ if(NOT DEFINED LLVM_COMMON_CMAKE_UTILS)
 endif()
 include(${LLVM_COMMON_CMAKE_UTILS}/Modules/CMakePolicy.cmake
   NO_POLICY_SCOPE)
+include(CheckCXXCompilerFlag)
 
 if (LIBC_CMAKE_VERBOSE_LOGGING)
   get_directory_property(LIBC_OLD_PREPROCESSOR_DEFS COMPILE_DEFINITIONS)


        


More information about the libc-commits mailing list