Skip to content

Commit 5f92ba8

Browse files
committed
add missing cc loads
1 parent 5d38fcb commit 5f92ba8

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

MODULE.bazel

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ module(
66
)
77

88
# Lower-bounds (minimum) versions for direct runtime dependencies
9-
bazel_dep(name = "bazel_lib", version = "3.0.0-beta.1")
9+
bazel_dep(name = "bazel_lib", version = "3.0.0")
1010
bazel_dep(name = "bazel_skylib", version = "1.4.1")
11-
bazel_dep(name = "platforms", version = "0.0.5")
11+
bazel_dep(name = "platforms", version = "1.0.0")
12+
bazel_dep(name = "rules_cc", version = "0.2.16") # to expose headers
1213

1314
# workaround for https://github.com/bazelbuild/bazel/issues/25124
1415
bazel_dep(name = "zlib", version = "1.3.1.bcr.6", dev_dependency = True)

nodejs/private/current_node_cc_headers.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
"""Implementation of current_node_cc_headers rule."""
1616

17+
load("@rules_cc//cc:defs.bzl", "CcInfo")
18+
1719
def _current_node_cc_headers_impl(ctx):
1820
return ctx.toolchains["//nodejs:toolchain_type"].nodeinfo.headers.providers_map.values()
1921

nodejs/repositories.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ filegroup(
259259

260260
if repository_ctx.attr.include_headers:
261261
build_content += """
262+
load("@rules_cc//cc:defs.bzl", "cc_library")
262263
cc_library(
263264
name = "headers",
264265
hdrs = glob(

nodejs/toolchain.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
"""This module implements the node toolchain rule.
1616
"""
1717

18+
load("@rules_cc//cc:defs.bzl", "CcInfo")
19+
1820
NodeInfo = provider(
1921
doc = "Information about how to invoke Node.js and npm.",
2022
fields = {

0 commit comments

Comments
 (0)