--- a/utils/bazel/configure.bzl 2022-08-27 19:11:41.138993000 +0100 +++ b/utils/bazel/configure.bzl 2022-08-27 19:12:07.525186000 +0100 @@ -37,7 +37,7 @@ overlay_path = bazel_path.get_child("llvm-project-overlay") script_path = bazel_path.get_child("overlay_directories.py") - python_bin = repository_ctx.which("python3") + python_bin = repository_ctx.which("%%PYTHON%%") if not python_bin: # Windows typically just defines "python" as python3. The script itself # contains a check to ensure python3.