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

[compiler-rt][profile] Use flock shim on Windows even if detection fails #112695

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kateinoigakukun
Copy link
Member

This is a follow-up fix for d4efc3e, which introduced CMake-time feature test for flock. The feature test always fails on Windows, but we still need to use the flock shim provided by WindowsMMap.h regardless of the feature test result.

…fails

This is a follow-up fix for d4efc3e, which
introduced CMake-time feature test for `flock`. The feature test always
fails on Windows, but we still need to use the `flock` shim provided by
WindowsMMap.h regardless of the feature test result.
@kateinoigakukun
Copy link
Member Author

@glandium Would you mind testing this patch with your PGO setup again? 🙏

@mstorsjo
Copy link
Member

I think this change looks reasonable - the referenced commit d4efc3e is so large that it's hard to pick out all the various details that happen in there though. But it looks correct to me.

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