Skip to content

Commit afbc4b3

Browse files
hvadehracopybara-github
authored andcommitted
Fix CcSharedLibraryInfo redirection
PiperOrigin-RevId: 802067616 Change-Id: I393f0c1b1b10a78792163e71cea2d32cbdaed6b3
1 parent 969186a commit afbc4b3

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

cc/common/cc_shared_library_info.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
# limitations under the License.
1414
"""CcSharedLibraryInfo"""
1515

16-
load("//cc/private/rules_impl:native.bzl", "NativeCcSharedLibraryInfo")
16+
load("@cc_compatibility_proxy//:proxy.bzl", _CcSharedLibraryInfo = "CcSharedLibraryInfo")
1717

18-
CcSharedLibraryInfo = NativeCcSharedLibraryInfo
18+
CcSharedLibraryInfo = _CcSharedLibraryInfo

cc/extensions.bzl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ bzl_library(
4747
load("@rules_cc//cc/private/rules_impl:cc_binary.bzl", _cc_binary = "cc_binary")
4848
load("@rules_cc//cc/private/rules_impl:cc_import.bzl", _cc_import = "cc_import")
4949
load("@rules_cc//cc/private/rules_impl:cc_library.bzl", _cc_library = "cc_library")
50-
load("@rules_cc//cc/private/rules_impl:cc_shared_library.bzl", _cc_shared_library = "cc_shared_library")
50+
load("@rules_cc//cc/private/rules_impl:cc_shared_library.bzl", _cc_shared_library = "cc_shared_library", _CcSharedLibraryInfo = "CcSharedLibraryInfo")
5151
load("@rules_cc//cc/private/rules_impl:cc_static_library.bzl", _cc_static_library = "cc_static_library")
5252
load("@rules_cc//cc/private/rules_impl:cc_test.bzl", _cc_test = "cc_test")
5353
load("@rules_cc//cc/private/rules_impl:objc_import.bzl", _objc_import = "objc_import")
@@ -69,6 +69,8 @@ fdo_prefetch_hints = _fdo_prefetch_hints
6969
fdo_profile = _fdo_profile
7070
memprof_profile = _memprof_profile
7171
propeller_optimize = _propeller_optimize
72+
73+
CcSharedLibraryInfo = _CcSharedLibraryInfo
7274
""",
7375
)
7476
else:
@@ -86,6 +88,7 @@ bzl_library(
8688
rctx.file(
8789
"proxy.bzl",
8890
"""
91+
load("@rules_cc//cc/private/rules_impl:native.bzl", "NativeCcSharedLibraryInfo")
8992
cc_binary = native.cc_binary
9093
cc_import = native.cc_import
9194
cc_library = native.cc_library
@@ -98,6 +101,8 @@ fdo_prefetch_hints = native.fdo_prefetch_hints
98101
fdo_profile = native.fdo_profile
99102
memprof_profile = getattr(native, "memprof_profile", None) # only in Bazel 7+
100103
propeller_optimize = native.propeller_optimize
104+
105+
CcSharedLibraryInfo = NativeCcSharedLibraryInfo
101106
""",
102107
)
103108

0 commit comments

Comments
 (0)