[RFC][CMake] Add top-level CMakeLists.txt

Hi, all!

I’ve opened PR #152753 to add a CMakeLists.txt at the repository root, so LLVM can be built directly from the top level instead of starting in the llvm/ subdirectory. This keeps the existing llvm/ build working, but makes it easier and more consistent for new contributors. Feedback welcome.

I think the goal of having a top-level CmakeLists.txt is desirable.

However, the PR does not fix any of the breakages which would happen when actually using this setup. For example, lldb would not pass its test suite. There are other minor breakages around, for example some things would be built into build/llvm/bin others into build/bin, and then not be able to find each other.

1 Like

Thanks. I will try to fix these issues.