Skip to content

Commit 50afe00

Browse files
habermancopybara-github
authored andcommitted
Internal change.
PiperOrigin-RevId: 812277001
1 parent e1f740d commit 50afe00

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

bazel/private/BUILD

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ bzl_library(
8383
"bazel_java_proto_library_rule.bzl",
8484
"java_proto_support.bzl",
8585
],
86-
visibility = ["//bazel:__subpackages__"],
86+
visibility = [
87+
"//bazel:__subpackages__",
88+
],
8789
deps = [
8890
":toolchain_helpers_bzl",
8991
"//bazel/common:proto_common_bzl",

bazel/private/upb_proto_library_internal/cc_library_func.bzl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")
77
def upb_use_cpp_toolchain():
88
return use_cpp_toolchain()
99

10-
def cc_library_func(ctx, name, hdrs, srcs, copts, dep_ccinfos, includes = []):
10+
def cc_library_func(ctx, name, hdrs, srcs, copts, dep_ccinfos, includes = [], alwayslink = False):
1111
"""Like cc_library(), but callable from rules.
1212
1313
Args:
@@ -54,6 +54,7 @@ def cc_library_func(ctx, name, hdrs, srcs, copts, dep_ccinfos, includes = []):
5454
compilation_outputs = compilation_outputs,
5555
linking_contexts = linking_contexts,
5656
disallow_dynamic_library = cc_common.is_enabled(feature_configuration = feature_configuration, feature_name = "targets_windows") or not cc_common.is_enabled(feature_configuration = feature_configuration, feature_name = "supports_dynamic_linker"),
57+
alwayslink = alwayslink,
5758
)
5859

5960
return CcInfo(

0 commit comments

Comments
 (0)