ldionne added a comment. @smeenai I'm now using `CACHE` variables, which should mean the detection is performed exactly once per build. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D68648/new/ https://reviews.llvm.org/D68648