Skip to content

Commit d14dcd6

Browse files
hvadehracopybara-github
authored andcommitted
Fork fdo rules bzl files
PiperOrigin-RevId: 791601077 Change-Id: Ie1fada81a29a228ba03ce9f328c77f405648f0a2
1 parent d0db10e commit d14dcd6

File tree

10 files changed

+710
-4
lines changed

10 files changed

+710
-4
lines changed

cc/extensions.bzl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ load("@rules_cc//cc/private/rules_impl:cc_static_library.bzl", _cc_static_librar
4141
load("@rules_cc//cc/private/rules_impl:cc_test.bzl", _cc_test = "cc_test")
4242
load("@rules_cc//cc/private/rules_impl:objc_import.bzl", _objc_import = "objc_import")
4343
load("@rules_cc//cc/private/rules_impl:objc_library.bzl", _objc_library = "objc_library")
44+
load("@rules_cc//cc/private/rules_impl:fdo/fdo_prefetch_hints.bzl", _fdo_prefetch_hints = "fdo_prefetch_hints")
45+
load("@rules_cc//cc/private/rules_impl:fdo/fdo_profile.bzl", _fdo_profile = "fdo_profile")
46+
load("@rules_cc//cc/private/rules_impl:fdo/memprof_profile.bzl", _memprof_profile = "memprof_profile")
47+
load("@rules_cc//cc/private/rules_impl:fdo/propeller_optimize.bzl", _propeller_optimize = "propeller_optimize")
4448
4549
cc_binary = _cc_binary
4650
cc_import = _cc_import
@@ -50,6 +54,10 @@ cc_static_library = _cc_static_library
5054
cc_test = _cc_test
5155
objc_import = _objc_import
5256
objc_library = _objc_library
57+
fdo_prefetch_hints = _fdo_prefetch_hints
58+
fdo_profile = _fdo_profile
59+
memprof_profile = _memprof_profile
60+
propeller_optimize = _propeller_optimize
5361
""",
5462
)
5563
else:
@@ -64,6 +72,10 @@ cc_static_library = getattr(native, "cc_static_library", None) # only in Bazel 8
6472
cc_test = native.cc_test
6573
objc_import = native.objc_import
6674
objc_library = native.objc_library
75+
fdo_prefetch_hints = native.fdo_prefetch_hints
76+
fdo_profile = native.fdo_profile
77+
memprof_profile = getattr(native, "memprof_profile", None) # only in Bazel 7+
78+
propeller_optimize = native.propeller_optimize
6779
""",
6880
)
6981

0 commit comments

Comments
 (0)