From 84d1de29d9579f4fdd3968dad7560e1946c7924d Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Mon, 15 Dec 2025 07:38:04 -0800 Subject: [PATCH] Fix build when the build directory isn't just immediately nested in the source dir The include path here tried to recover the root source directory by assuming a build directory immediately nested there. --- llvm/lib/Support/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Support/CMakeLists.txt b/llvm/lib/Support/CMakeLists.txt index 41eb19a97cb9..5eccf59d81a1 100644 --- a/llvm/lib/Support/CMakeLists.txt +++ b/llvm/lib/Support/CMakeLists.txt @@ -397,7 +397,7 @@ target_include_directories(LLVMSupport ) # Integrating LLVM libc's math functions -target_include_directories(LLVMSupport PRIVATE "${LLVM_INCLUDE_DIR}/../../libc") +target_include_directories(LLVMSupport PRIVATE "${LLVM_SOURCE_DIR}/../libc") if(NOT MSVC) target_compile_options(LLVMSupport PRIVATE "-Wno-c99-extensions") # _Complex warnings. endif()