xys-syx wrote: Actually, I refactored the bazel part out, so this now just contains the [approved] cmake code and can look at bazel in a different PR. Since this is approved, can it be merged? https://github.com/llvm/llvm-project/pull/182652