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

Support building on Windows #293

Draft
wants to merge 37 commits into
base: main
Choose a base branch
from
Draft

Conversation

nightlark
Copy link

This has most of the changes that would be needed to support building on Windows using MinGW. Tests are not passing yet (some weird open file handle limitations on the GitHub Action VMs?).

The biggest limitation is that shell filters needed to be disabled since a native POSIX compatible ‘sh’ isn’t really available on Windows, and the forking/exec/pipes to spawn the subprocess are tricky to convert.

There are several things related to file access and temp file creation could be cleaned up by using std::filesystem.

Memory mapping and a few other read functions can be addressed with some Windows alternatives, though there may also be opportunities to leverage more C++17 standard library features to make those parts of the code more portable. And there are a few things like madvise that just don’t seem to have a Windows equivalent.

nightlark and others added 30 commits November 8, 2024 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant