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

chore: dragonfly compiles on FreeBSD #1789

Merged
merged 1 commit into from
Sep 3, 2023
Merged

chore: dragonfly compiles on FreeBSD #1789

merged 1 commit into from
Sep 3, 2023

Conversation

romange
Copy link
Collaborator

@romange romange commented Sep 3, 2023

  1. Do not use IOUring on non-linux systems.
  2. Improve compatibility of the code for non-linux systems.
  3. pull helio

@romange romange requested a review from chakaz September 3, 2023 07:47
chakaz
chakaz previously approved these changes Sep 3, 2023
1. Do not use IOUring on non-linux systems.
2. Improve compatibility of the code for non-linux systems.

Signed-off-by: Roman Gershman <[email protected]>
@romange
Copy link
Collaborator Author

romange commented Sep 3, 2023

pulled helio again

@romange romange merged commit e8bf54e into main Sep 3, 2023
@romange romange deleted the FreeBSD branch September 3, 2023 11:11
@@ -109,6 +109,17 @@ unsigned NumPagesInSegment(PageClass pc) {
return 0;
}

template <size_t N> size_t FindFirst(const std::bitset<N>& bs) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I was hoping compilers would recognize the pattern, but on compiler explorer it looks like both GCC and clang can't do it :/

If we ever really care enough about libc++ performance we might need to abandon std::bitset and implement this ourselves.

Copy link
Contributor

Choose a reason for hiding this comment

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

(I don't think we care enough about libc++ right now, though)

Copy link
Collaborator Author

@romange romange Sep 3, 2023

Choose a reason for hiding this comment

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

we do not care. moreover, I still can not link dragonfly with clang. has weird missing symbol errors.

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.

3 participants