[bazel] Use lowercase repo name (#8441)

This commit is contained in:
Austin Schuh
2025-12-03 18:14:34 -08:00
committed by GitHub
parent 08784dc2d1
commit d1b1703c86

View File

@@ -182,7 +182,7 @@ index ce0dac5..ec68ab9 100644
should_detect_cpp_toolchain = "BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN" not in env or env["BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN"] != "1"
if should_detect_cpp_toolchain:
+ if repository_ctx.os.name.find("windows") != -1:
+ if repository_ctx.os.name.lower().find("windows") != -1:
+ build_path = "@rules_cc//cc/private/toolchain:BUILD.windows_toolchains.tpl"
+ else:
+ build_path = "@rules_cc//cc/private/toolchain:BUILD.toolchains.tpl"