Skip to content

Commit dcc8ec1

Browse files
committed
bazel: Use lowercase repo name
Comments from bazelbuild/rules_cc#432 suggested lower casing, let's make sure that works. Signed-off-by: Austin Schuh <[email protected]>
1 parent b482fa0 commit dcc8ec1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared/bazel/patches/rules_cc_windows.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ index ce0dac5..ec68ab9 100644
182182
should_detect_cpp_toolchain = "BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN" not in env or env["BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN"] != "1"
183183

184184
if should_detect_cpp_toolchain:
185-
+ if repository_ctx.os.name.find("windows") != -1:
185+
+ if repository_ctx.os.name.lower().find("windows") != -1:
186186
+ build_path = "@rules_cc//cc/private/toolchain:BUILD.windows_toolchains.tpl"
187187
+ else:
188188
+ build_path = "@rules_cc//cc/private/toolchain:BUILD.toolchains.tpl"

0 commit comments

Comments
 (0)