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.
This commit is contained in:
Mehdi Amini
2025-12-15 07:38:04 -08:00
parent 4190d57682
commit 84d1de29d9

View File

@@ -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()