Skip to content

Commit

Permalink
Bump rules_cc to support llvm 11.0.0 clang-cl compiler on Windows
Browse files Browse the repository at this point in the history
The clang-cl compiler version 11.0.0 number was missing a trailing whitespace that bazel rules_cc expected.

This commit picks up the most recent commit of rules_cc.

We would appreciate seeing this backported to 3.7.1 prior to the 4.0.0 release, since it represented a showstopper and has no side effects to users of earlier clang-cl compilers.

Signed-off-by: William A Rowe Jr <[email protected]>

Closes bazelbuild#12458.

PiperOrigin-RevId: 342650689
  • Loading branch information
wrowe authored and katre committed Nov 18, 2020
1 parent 6336264 commit b3f9346
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
load("@bazel_tools//tools/cpp:cc_configure.bzl", "cc_configure")

# rules_cc is used in @bazel_tools//tools/cpp, so must be loaded here.
maybe(
http_archive,
"rules_cc",
sha256 = "d0c573b94a6ef20ef6ff20154a23d0efcb409fb0e1ff0979cec318dfe42f0cdd",
strip_prefix = "rules_cc-b1c40e1de81913a3c40e5948f78719c28152486d",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/b1c40e1de81913a3c40e5948f78719c28152486d.zip",
"https://github.com/bazelbuild/rules_cc/archive/b1c40e1de81913a3c40e5948f78719c28152486d.zip",
],
)

cc_configure()
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,11 @@ maybe(
maybe(
http_archive,
"rules_cc",
sha256 = "1d4dbbd1e1e9b57d40bb0ade51c9e882da7658d5bfbf22bbd15b68e7879d761f",
strip_prefix = "rules_cc-8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0",
sha256 = "d0c573b94a6ef20ef6ff20154a23d0efcb409fb0e1ff0979cec318dfe42f0cdd",
strip_prefix = "rules_cc-b1c40e1de81913a3c40e5948f78719c28152486d",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
"https://github.com/bazelbuild/rules_cc/archive/8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
"https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/b1c40e1de81913a3c40e5948f78719c28152486d.zip",
"https://github.com/bazelbuild/rules_cc/archive/b1c40e1de81913a3c40e5948f78719c28152486d.zip",
],
)

Expand Down

0 comments on commit b3f9346

Please sign in to comment.