etherzhhb added a comment.
I tried the combination of {LLVM_POLLY_LINK_INTO_TOOLS On/Of} x {cmake from scratch/cmake on existing cmakecach}, and it passed check-all (which includes check-polly).
Repository:
rL LLVM
https://reviews.llvm.org/D25354