From ed57ab0c2b8f359e7937f2c565239bd7cf124a9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Mon, 17 Mar 2025 14:00:09 +0100 Subject: [PATCH] [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. --- {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 0e65fdff7c34..95426c51a604 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