[cpp20-bot] Disable C++20 module dependency scanning

LLVM bumped its minimum CMake version to 3.31 (llvm/llvm-project#223854),
enabling policy CMP0155 by default. Under CMP0155, CMake automatically
runs C++20 module dependency scanning for Ninja + Clang >= 16 builds,
which invokes clang-scan-deps.

Because the clang-debian-cpp20 Docker image does not install
clang-scan-deps-17, try_compile checks (starting with LLVM_LIBSTDCXX_MIN
in CheckCompilerVersion.cmake) fail with a misleading libstdc++ version
error.

Pass -DCMAKE_CXX_SCAN_FOR_MODULES=OFF to disable module scanning, since
LLVM does not use C++20 modules.
1 file changed