naveen-seth wrote:

@shiltian, can you do the following for me?

1. Checkout `3773bbe`.
2. Apply the following patch:

```diff
diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt
index 908580f791f3..d08f062fac4f 100644
--- a/llvm/CMakeLists.txt
+++ b/llvm/CMakeLists.txt
@@ -1,6 +1,9 @@
 # See docs/CMake.html for instructions about how to build LLVM with CMake.
 cmake_minimum_required(VERSION 3.20.0)
 
+set_property(GLOBAL PROPERTY GLOBAL_DEPENDS_NO_CYCLES ON)
+set_property(GLOBAL PROPERTY GLOBAL_DEPENDS_DEBUG_MODE ON)
+
 include(CMakeDependentOption)
 
 set(LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR}/../cmake)
```

3. Run the cmake configure command you posted earlier ([this 
one](https://github.com/llvm/llvm-project/pull/165277#issuecomment-3572404553)) 
from your build directory, log the full output of the command (stdout and 
stderr), and attach it here.

With these CMake properties enabled, CMake should print the dependency lists 
for each target and detect any cycles ahead of time, with output like:

```
target 2447 is [clangFrontend]
  depends on target 2177 [clangAPINotes] (weak)
  depends on target 2215 [clangAST] (weak)
  depends on target 2165 [clangBasic] (weak)
  depends on target 2423 [clangOptions] (weak)
  depends on target 2375 [clangEdit] (weak)
  depends on target 2189 [clangLex] (weak)
  depends on target 2201 [clangParse] (weak)
  depends on target 2264 [clangSema] (weak)
  depends on target 2435 [clangSerialization] (weak)
  depends on target 386 [LLVMBitReader] (weak)
  depends on target 416 [LLVMBitstreamReader] (weak)
  depends on target 795 [LLVMOption] (weak)
  depends on target 1284 [LLVMProfileData] (weak)
  depends on target 32 [LLVMSupport] (weak)
  depends on target 1317 [LLVMTargetParser] (weak)
  depends on target 145 [intrinsics_gen] (strong)
  depends on target 1833 [clang-tablegen-targets] (strong)
  depends on target 2017 [ClangDriverOptions] (strong)
  depends on target 2446 [obj.clangFrontend] (strong)
```

For me, this does not report any cyclic dependency errors. The exact dependency 
list also don’t list `clangDriver` for `clangFrontend`.
This makes me even more confused, since I wouldn’t expect this to differ 
between our setups.

https://github.com/llvm/llvm-project/pull/169397
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to