From b4e629fcb4c5f68522ef53c17fb7d512cd4da9a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Mon, 17 Mar 2025 09:37:02 +0100 Subject: [PATCH] [cmake] Move FindLibcCommonUtils to shared cmake, to fix standalone builds 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. --- {llvm/cmake/modules => cmake/Modules}/FindLibcCommonUtils.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename {llvm/cmake/modules => cmake/Modules}/FindLibcCommonUtils.cmake (94%) diff --git a/llvm/cmake/modules/FindLibcCommonUtils.cmake b/cmake/Modules/FindLibcCommonUtils.cmake similarity index 94% rename from llvm/cmake/modules/FindLibcCommonUtils.cmake rename to cmake/Modules/FindLibcCommonUtils.cmake index 0e65fdff7c34b..95426c51a6041 100644 --- a/llvm/cmake/modules/FindLibcCommonUtils.cmake +++ b/cmake/Modules/FindLibcCommonUtils.cmake @@ -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