-
Notifications
You must be signed in to change notification settings - Fork 947
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
Switch to gulrak/filesystem #938
Comments
@cpsauer sorry for the delayed response. I was on vacation. Don't worry. This is how developing software works. It's an iterative process pushing it to a better and better state. Back then using To me https://github.com/gulrak/filesystem looks like a well maintained and by far more compatible replacement for I can look into porting our code over to it soon. Probably in the next two weeks or since I'm catching up with stuff right now. For now I created an issue for it, so we do not forget about it. Thank you very much for looking into this and preparing everything required in gulrak/filesystem#167. |
np at all. hope you had a great one, and thanks for being great, as always, Fabian. Since I wrote that, I've pushed up the wrapping of ghc::filesystem for bazel and switched things over on the Bazel side with a little patch. Lmk if you want me to help tactically on migrating here--though I should really still defer to your comparative advantage on cmake. Happy to spin up a draft PR that we could collaborate on--or you could give me access to wherever you're working on it? A couple additional notes from things I learned that might speed things along:
|
I really think we should backport std::filesystem with https://github.com/gulrak/filesystem instead of boost::filesystem.
gulrak/filesystem is std::filesystem-compatible (and header-only), sidestepping a lot of the pain we were getting in my other project from the API differences between boost::filesystem and std::filesystem. I'm guessing it'll save you a lot of API-divergence pain, too, as code continues to build on filesystem.
What do you think?
Some notes:
[One tricky case to think about: If you want to support the shared-library case, you'll want to make sure the same filesystem importation gets picked even if the final binary has a higher min OS version (deployment target) than was used for libcpr compilation. Not sure how cmake usually handles this...
Cheers!
Chris
P.S. Wish I'd steered us to this straight away when I saw someone had added the broken boost backport...sorry I just learned about it.
Originally posted by @cpsauer in #929 (comment)
The text was updated successfully, but these errors were encountered: