mirror of
https://github.com/intel/llvm.git
synced 2026-01-12 10:17:28 +08:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user