This adds a specific error message to clarify that lldb requires libcxx when
built together with clang on macOS. In addition, the lldb building docs are also
updated.
Details
- Reviewers
sgraenitz JDevlieghere EricWF - Commits
- rZORGf9788e6aab2d: [CMake] Add error to clarify that lldb requires libcxx
rZORG15c0140b9c33: [CMake] Add error to clarify that lldb requires libcxx
rGf9788e6aab2d: [CMake] Add error to clarify that lldb requires libcxx
rG15c0140b9c33: [CMake] Add error to clarify that lldb requires libcxx
rGa5588c4583a7: [CMake] Add error to clarify that lldb requires libcxx
rLLDB360756: [CMake] Add error to clarify that lldb requires libcxx
rL360756: [CMake] Add error to clarify that lldb requires libcxx
Diff Detail
- Repository
- rL LLVM
Event Timeline
lldb/CMakeLists.txt | ||
---|---|---|
127 ↗ | (On Diff #199346) | Should we check that LLVM_ENABLE_PROJECTS is not empty, for people that are still using the old layout? |
Thanks for adding this. Would it make sense to use LLVM_ENABLE_PROJECTS_USED? https://github.com/llvm/llvm-project/blob/a568222d/llvm/CMakeLists.txt#L128
BTW LLVM_ENABLE_PROJECTS can be "all" but LLVM should already have handled it at this point.
lldb/CMakeLists.txt | ||
---|---|---|
127 ↗ | (On Diff #199346) | +1 |
Thanks all for the review! 😄
LLVM_ENABLE_PROJECTS_USED seems to be about "what did we use last time", which felt confusing to test here, so I have avoided that so far.
In the updated version, I have changed to testing if(NOT TARGET cxx), which should cover all cases, including:
- LLVM_ENABLE_PROJECTS='clang;lldb;libcxx'
- LLVM_ENABLE_PROJECTS='all'
- Old layout
lldb/CMakeLists.txt | ||
---|---|---|
127 ↗ | (On Diff #199346) | Ah yes, thanks for catching that! I have updated this to support the old layout as well. |
Thanks for the review! 😄 I don't have commit access yet, so could you please commit this for me?
@sgraenitz Thanks for committing! 😄 I guess the original author info is lost for this one, but consider adding a "Patch by" line for future commits from those without access.
Yes, sorry for that. I realized it after the commit was in. The commit I got from arc patch did have the original author information. It must have changed in git llvm push, probably because it's still going to SVN and then gets mirrored back to git. I missed this last detail.
consider adding a "Patch by" line for future commits from those without access.
Given that I do this about once a year, I hope we will have switched to git at this point ;-)