summaryrefslogtreecommitdiff
path: root/rust/rust.go
diff options
context:
space:
mode:
author Vinh Tran <vinhdaitran@google.com> 2023-03-09 22:07:19 -0500
committer Vinh Tran <vinhdaitran@google.com> 2023-03-31 17:52:01 -0400
commit44cb78c988462e593ac66129dc85f80a98705bb2 (patch)
tree4e20bc8f308d1c11b7781d92856ab11482ff9e06 /rust/rust.go
parentcdbb1a999ff0401726dcf8e8a47d60589eff67c2 (diff)
Implement fdo_profile module type
Introducing fdo_profile module type to reimplement the afdo support in cc moduels. This change allows the feature to be compatible with Bazel migration. How it works: PreDepsMutators: * BeginMutator: If non-static cc modules sets afdo prop, search and add corresponding fdo_profile module as a dep with fdoProfileTag * fdoProfileMutator: * If in fdo_profile module, set FdoProfileProvider with full path to profile * If in cc module, read FdoProfileProvider from dep with fdoProfileTag and set FdoProfileInfo.Path to FdoProfilePath field PostDepsMutators: * afdoDepsMutator: If a module has FdoProfilePath set, walk to its static deps and set itself to the deps' AfdoRdeps * afdoMutator: If a static dep has AfdoRDeps set, create afdo variant. Ignore-AOSP-First: Other CLs in the same topic are internal-only Test: go test Bug: b/267229065 Change-Id: I687d798a02d9743c92804fea36fb4ae3a7a0e5e3 Merged-In: I687d798a02d9743c92804fea36fb4ae3a7a0e5e3
Diffstat (limited to 'rust/rust.go')
0 files changed, 0 insertions, 0 deletions