Fix Bazel build with bzlmod by loading cc_library rule

With bzlmod, native rules like cc_library are no longer implicitly available
and must be explicitly loaded from rules_cc. Add the rules_cc dependency to
MODULE.bazel and the corresponding load statement to BUILD.bazel.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Carbo 2026-03-27 14:39:16 +09:00
parent 7124634005
commit 9817d5ddaa
2 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,5 @@
load("@rules_cc//cc:cc_library.bzl", "cc_library")
cc_library(
name = "fast_float",
hdrs = glob(["include/fast_float/*.h"]),

View File

@ -7,3 +7,5 @@ module(
)
bazel_dep(name = "doctest", version = "2.4.11", dev_dependency = True)
bazel_dep(name = "rules_cc", version = "0.2.17")