Skip to content

Commit 3a7d1b5

Browse files
[libc] Include CheckCXXCompilerFlag when checking compiler features (llvm#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.
1 parent 698d832 commit 3a7d1b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ if(NOT DEFINED LLVM_COMMON_CMAKE_UTILS)
77
endif()
88
include(${LLVM_COMMON_CMAKE_UTILS}/Modules/CMakePolicy.cmake
99
NO_POLICY_SCOPE)
10+
include(CheckCXXCompilerFlag)
1011

1112
if (LIBC_CMAKE_VERBOSE_LOGGING)
1213
get_directory_property(LIBC_OLD_PREPROCESSOR_DEFS COMPILE_DEFINITIONS)

0 commit comments

Comments
 (0)