[cmake] Move FindLibcCommonUtils to shared cmake, to fix standalone builds (#131586)

Move `FindLibcCommonUtils` from LLVM's CMake module directory to the
shared top-level CMake directory, as the module is intended to be used
from within the source tree rather than the installed LLVM version. This
fixes standalone offload builds after #131205.
This commit is contained in:
Michał Górny
2025-03-17 14:00:09 +01:00
committed by GitHub
parent 06546e005d
commit ed57ab0c2b

View File

@@ -7,7 +7,7 @@
#===--------------------------------------------------------------------===//
if(NOT TARGET llvm-libc-common-utilities)
set(libc_path ${CMAKE_CURRENT_LIST_DIR}/../../../libc)
set(libc_path ${CMAKE_CURRENT_LIST_DIR}/../../libc)
if (EXISTS ${libc_path} AND IS_DIRECTORY ${libc_path})
add_library(llvm-libc-common-utilities INTERFACE)
# TODO: Reorganize the libc shared section so that it can be included without