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

Add libpfm #1596

Merged
merged 1 commit into from
Aug 10, 2024
Merged

Add libpfm #1596

merged 1 commit into from
Aug 10, 2024

Conversation

blue42u
Copy link
Contributor

@blue42u blue42u commented Jul 26, 2024

Libpfm is unique in that building for ARM only works when also building for Linux. This causes the build to fail for MacOS arm64 in CI. #1597 adds the logic necessary to handle this situation.

EDIT: To work around the above issue without changes to the CI, this wrap is designed to only support Linux. Attempts to use it on other platforms will result in an error.

@blue42u blue42u force-pushed the libpfm branch 11 times, most recently from 61554cb to f4fb29a Compare July 27, 2024 07:00
@blue42u blue42u marked this pull request as ready for review July 27, 2024 07:21
@blue42u blue42u force-pushed the libpfm branch 2 times, most recently from 7e0f3c6 to 6f6f342 Compare August 10, 2024 14:40
@blue42u
Copy link
Contributor Author

blue42u commented Aug 10, 2024

@jpakkane I've adjusted this wrap so it can pass CI by erroring out on any platform other than Linux (i.e. semi-workaround without #1597). Is this a reasonable solution?

@jpakkane
Copy link
Member

Why are you prefixing variable names with an underscore? It is nonstandard.

@blue42u
Copy link
Contributor Author

blue42u commented Aug 10, 2024

Force of habit coming from Python, there private members/functions/variables are prefixed with an underscore. New version pushed to remove them.

@jpakkane jpakkane merged commit 517c87d into mesonbuild:master Aug 10, 2024
9 checks passed
@blue42u blue42u deleted the libpfm branch August 10, 2024 16:08
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