add_llvm_uttility causes targets to be exported to LLVMConfig.cmake.
Building lldb standalone can cause this to be both imported and then
attempted to build and thus fail.
Details
Details
- Reviewers
xiaobai
Diff Detail
Diff Detail
- Build Status
Buildable 35135 Build 35134: arc lint + arc unit
Event Timeline
Comment Actions
Am I guessing correctly that this happens when you installed combined llvm+lldb build, and then try to build lldb standalone against that?
Comment Actions
Am I guessing correctly that this happens when you installed combined llvm+lldb build, and then try to build lldb standalone against that?
Precisely. Not a common problem, but the build does fail when this is the case.
Comment Actions
To be honest, I don't think this is the correct solution. After all, lit-cpuid isn't installed, is it? (or are you using LLVM_INSTALL_UTILS?)
Comment Actions
So add_llvm_utility exports it's target if LLVM_DISTRIBUTION_COMPONENTS doesn't exist. So I guess the better solution would just be setting that.