-
Notifications
You must be signed in to change notification settings - Fork 45
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
building samurai on Windows using msys2 + mingw-w64 #84
Comments
the Windows platform is not POSIX and i would like to help porting samurai to Windows. I'm currently porting muon to Windows and it would be nice to have them on Windows. My plan would be to use native Windows API, first using MSYS2+mingw-w64, then trying with Visual Studio but that would mean that some files are partly written for Windows. If you agree, what about having posix/ and windows/ subdirectories ? thank you |
In e.g. #13 and #37, Windows support was proposed and attempted, but the first was closed due to inactivity and the second due to unexpected challenges in the library which was attempted to use for Windows process handling support. See the "proc" and "windows" branches of this repository, which have bits and pieces of logic for abstracting the operating system. I'd say that @michaelforney is definitely interested. Note that they follow a general trend of using |
If I begin the Windows port, I will certainly write several "small" patches, one after the other like muon. But I will begin it after muon correctly supports Windows. |
Hmm it doesn't really make much sense since ninja is C++, the C with classes and all sorts of obscure stuff. The Windows people usually only use C++, C is more often used in POSIX systems, for many CLI apps at least, so ninja has lots of support from the Windows crowd (I think) The ninja project even releases windows binaries, but only x86_64 binaries, people forget that x86 is still in use So, you should focus on testing and merging the current open PRs so that samurai doesn't lag behind ninja in the battle of swords. See it as lzip, which is a C++ app, there's also clzip which is the C implementation to maximize portability with IoT devices and stuff It makes sense for POSIX systems because that's a huge family with all sorts of use cases, people build their own linux "distros" and so on, ninja is not that big statically linked either (including libstdc++) |
@michaelforney as the development of muon is stalled these days, i decided to look at the windows port of samurai. the work is based on what you done in the windows branch and git. do you prefer to have big PRs, or small PRs ? some remarks:
|
@michaelforney i can also add a prefix for the functions in os.h, like |
@michaelforney here is my first attempt for windows port: i did something wrong with the last commit it seems (2 commits were merged), but code is there it remains build.c which is a bit tricky feel free to send remarks thank you |
hello
do you plan to support the Windows platform ?
The text was updated successfully, but these errors were encountered: