vbvictor wrote: I don't have an opinion on this till I find time to thoughtfully review change, but this looks error scary. If we are to proceed further, we should add Aaron and cmake maintainers to review https://github.com/llvm/llvm-project/pull/173518