From 2075ae813bd98a88d2883a386d693481a5862c50 Mon Sep 17 00:00:00 2001 From: Rodrigo Queiro Date: Wed, 16 Oct 2024 10:08:53 +0200 Subject: [PATCH] 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. --- BUILD.bazel | 2 +- MODULE.bazel | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index 0acdc72b6..30131e0e9 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -17,6 +17,6 @@ platform( constraint_values = [ "@platforms//cpu:x86_64", "@platforms//os:windows", - "@bazel_tools//tools/cpp:clang-cl", + "@rules_cc//cc/private/toolchain:clang-cl", ], ) diff --git a/MODULE.bazel b/MODULE.bazel index f3e834184..9d7c646c2 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -6,7 +6,8 @@ module( bazel_dep(name = "gflags", version = "2.2.2") bazel_dep(name = "googletest", version = "1.14.0", dev_dependency = True) bazel_dep(name = "platforms", version = "0.0.10") +bazel_dep(name = "rules_cc", version = "0.0.12") # Required for Windows clang-cl build: --extra_toolchains=@local_config_cc//:cc-toolchain-arm64_windows -cc_configure = use_extension("@bazel_tools//tools/cpp:cc_configure.bzl", "cc_configure_extension") +cc_configure = use_extension("@rules_cc//cc:extensions.bzl", "cc_configure_extension") use_repo(cc_configure, "local_config_cc")