mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-04-30 19:09:19 +08:00
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:
parent
7124634005
commit
9817d5ddaa
@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||||
|
|
||||||
cc_library(
|
cc_library(
|
||||||
name = "fast_float",
|
name = "fast_float",
|
||||||
hdrs = glob(["include/fast_float/*.h"]),
|
hdrs = glob(["include/fast_float/*.h"]),
|
||||||
|
|||||||
@ -7,3 +7,5 @@ module(
|
|||||||
)
|
)
|
||||||
|
|
||||||
bazel_dep(name = "doctest", version = "2.4.11", dev_dependency = True)
|
bazel_dep(name = "doctest", version = "2.4.11", dev_dependency = True)
|
||||||
|
|
||||||
|
bazel_dep(name = "rules_cc", version = "0.2.17")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user