Cannot build with LLVM_LINK_LLVM_DYLIB or LLVM_BUILD_LLVM_DYLIB
- Dominant language
- LLVM
- Stars
- 1.5k
- Forks
- 854
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 137
Description
### Describe the bug
This needs to work.
```
python buildbot/configure.py -DLLVM_LINK_LLVM_DYLIB=on -DLLVM_BUILD_LLVM_DYLIB=on
```
```
CMake Error: The inter-target dependency graph contains the following strongly connected component (cycle):
"LLVMLTO" of type STATIC_LIBRARY
depends on "LLVMPasses" (weak)
depends on "LLVMSYCLLowerIR" (weak)
depends on "LLVMGenXIntrinsics" (weak)
"LLVMOrcJIT" of type STATIC_LIBRARY
depends on "LLVMPasses" (weak)
depends on "LLVMSYCLLowerIR" (weak)
depends on "LLVMGenXIntrinsics" (weak)
"LLVMOrcDebugging" of type STATIC_LIBRARY
depends on "LLVMOrcJIT" (weak)
depends on "LLVMPasses" (weak)
depends on "LLVMSYCLLowerIR" (weak)
depends on "LLVMGenXIntrinsics" (weak)
"LLVMPasses" of type STATIC_LIBRARY
depends on "LLVMSYCLLowerIR" (weak)
depends on "LLVMGenXIntrinsics" (weak)
"LLVMSYCLLowerIR" of type STATIC_LIBRARY
depends on "LLVMGenXIntrinsics" (weak)
depends on "LLVMGenXIntrinsics" (strong)
"LLVMGenXIntrinsics" of type STATIC_LIBRARY
depends on "LLVMSPIRVLib" (strong)
"LLVMSYCLNativeCPUUtils" of type STATIC_LIBRARY
depends on "LLVMPasses" (weak)
depends on "LLVMSYCLLowerIR" (weak)
depends on "LLVMGenXIntrinsics" (weak)
"LLVMSYCLPostLink" of type STATIC_LIBRARY
depends on "LLVMSYCLLowerIR" (weak)
depends on "LLVMGenXIntrinsics" (weak)
depends on "LLVMPasses" (weak)
"LLVM" of type SHARED_LIBRARY
depends on "LLVMLTO" (weak)
depends on "LLVMPasses" (weak)
depends on "LLVMSYCLLowerIR" (weak)
depends on "LLVMGenXIntrinsics" (weak)
depends on "LLVMOrcJIT" (weak)
depends on "LLVMOrcDebugging" (weak)
depends on "LLVMSYCLNativeCPUUtils" (weak)
depends on "LLVMSYCLPostLink" (weak)
"LLVMSPIRVLib" of type STATIC_LIBRARY
depends on "LLVM" (weak)
At least one of these targets is not a STATIC_LIBRARY. Cyclic dependencies are allowed only among static libraries.
CMake Generate step failed. Build files cannot be regenerated correctly.
```
### To reproduce
### Environment
_No response_
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.