Handle the case where LLVM_MAIN_SRC_DIR is not set and also use
LLVM_CMAKE_DIR for locating installed cmake files rather than
LLVM_CMAKE_PATH.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
clang/lib/Basic/CMakeLists.txt | ||
---|---|---|
13 ↗ | (On Diff #186726) | Will this work when using llvm-config instead of LLVM's CMake package? |
clang/lib/Basic/CMakeLists.txt | ||
---|---|---|
13 ↗ | (On Diff #186726) | I will test this and a few other configurations to make sure. |
Comment Actions
This could also be improved by teaching clang to use LLVM_BUILD_MAIN_SRC_DIR when that's available.
Comment Actions
Updated patch to fix non-standalone builds. There is more refactoring
that could be done, but this at least restores functionality to before
r353268.
I have tested non-standalone builds and standalone builds with and
without llvm-config.
Comment Actions
LGTM. There's more clean up that could be done here, but this addresses the immediate issue. Thanks!