Skip to content

Commit 2075ae8

Browse files
authored
Migrate to rules_cc (#1136)
See #1135. Not sure if this will work because the error only repros on Windows with a specific Bazel version.
1 parent de309c0 commit 2075ae8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ platform(
1717
constraint_values = [
1818
"@platforms//cpu:x86_64",
1919
"@platforms//os:windows",
20-
"@bazel_tools//tools/cpp:clang-cl",
20+
"@rules_cc//cc/private/toolchain:clang-cl",
2121
],
2222
)

MODULE.bazel

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ module(
66
bazel_dep(name = "gflags", version = "2.2.2")
77
bazel_dep(name = "googletest", version = "1.14.0", dev_dependency = True)
88
bazel_dep(name = "platforms", version = "0.0.10")
9+
bazel_dep(name = "rules_cc", version = "0.0.12")
910

1011
# Required for Windows clang-cl build: --extra_toolchains=@local_config_cc//:cc-toolchain-arm64_windows
11-
cc_configure = use_extension("@bazel_tools//tools/cpp:cc_configure.bzl", "cc_configure_extension")
12+
cc_configure = use_extension("@rules_cc//cc:extensions.bzl", "cc_configure_extension")
1213
use_repo(cc_configure, "local_config_cc")

0 commit comments

Comments
 (0)