This works just fine for windows, as all the functions it calls are implemented and wrapped for windows.
Details
- Reviewers
amccarth EricWF ldionne - Group Reviewers
Restricted Project - Commits
- rG4d292d531bea: [libcxx] Use the posix code for directory_entry::__do_refresh
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
There's a whole bunch of tests, and none of them are excluded on windows right now (as std::filesystem isn't possible to even build for windows as things are in git so far), so this patch reduces the amount of failing tests.
(Locally, I have a branch with a whole lot of patches on top of the testsuite for std::filesystem to disable/change bits to make it pass with MS STL, and with this patchset for the implementation in libc++, it gets to a point where the same tests that succeed with MS STL also succeed with libc++. I started out by upstreaming the least hacky bits of those patches, but there's just a whole lot of it, and it's more productive for now to focus on upstreaming the implementation. I was hoping for getting it in by the time of the llvm 12 branch, but we'll see how that goes...)
This one already has a green report from CI back when it was uploaded, and I think the surrounding area hasn't changed since, but I can push it through CI once before pushing the code, if it's otherwise ok. This is essentially only a deletion of a windows specific ifdef block, nothing more.
I love red diffs. LGTM.
As @amccarth said - I'm relying on you running the tests on Windows locally for the correctness. Once we're trough with your patchset and filesystem builds on windows, I would be really really thankful if we could add CI on a windows machine and run the tests there.