[all-commits] [llvm/llvm-project] 88b770: fix clang_cmake_builddir (#161220)
Romaric Jodin via All-commits
all-commits at lists.llvm.org
Thu Oct 16 04:18:41 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 88b77073460d61c66d9d0d599e6afd7b1b82bc4e
https://github.com/llvm/llvm-project/commit/88b77073460d61c66d9d0d599e6afd7b1b82bc4e
Author: Romaric Jodin <rjodin at google.com>
Date: 2025-10-16 (Thu, 16 Oct 2025)
Changed paths:
M clang/cmake/modules/CMakeLists.txt
Log Message:
-----------
fix clang_cmake_builddir (#161220)
When building llvm from a subdirectory (like clspv does)
`CMAKE_BINARY_DIR` is at the top of the build directory.
When building runtimes (libclc for example), the build fails looking for
clang (through `find_package` looking at `LLVM_BINARY_DIR` with
`NO_DEFAULT_PATH` & `NO_CMAKE_FIND_ROOT_PATH`) because clang is not in
`LLVM_BINARY_DIR`.
Fix that issue by setting `clang_cmake_builddir` the same way we set
`llvm_cmake_builddir` from `LLVM_BINARY_DIR`.
For default llvm build (using llvm as the main cmake project), it should
not change anything.
For standalone clang build, keep the actual value as libclc cannot be
built that way.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list