Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable fdo features. #1002

Merged
merged 1 commit into from
Jan 25, 2023
Merged

Disable fdo features. #1002

merged 1 commit into from
Jan 25, 2023

Conversation

rjogrady
Copy link
Contributor

fdo_instrument and fdo_optimize features should be disabled. These are not supported by external build systems.

fdo_instrument and fdo_optimize features should be disabled. These are
not supported by external build systems.
Copy link
Member

@jsharpe jsharpe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks!

@jsharpe jsharpe merged commit 1e66c02 into bazel-contrib:main Jan 25, 2023
copybara-service bot pushed a commit to google/fleetbench that referenced this pull request Jan 26, 2023
libpfm is a make-based project wrapped by the foreign_cc rules, which doesn't support the FDO instrumentation flags.

The latest version of rules_foreign_cc includes bazel-contrib/rules_foreign_cc#1002
which silently drops the FDO flags for foreign targets.

This allows us to set --fdo_instrument / --fdo_optimize flags as well as --define=pfm=1.

PiperOrigin-RevId: 504700102
Change-Id: I3acd19d367cc65f7241449a55cd3e500a65c4b5a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants