-
Notifications
You must be signed in to change notification settings - Fork 18
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
build: tweak the build target on CIO_BACKEND_FILESYSTEM=Off #15
Conversation
Not only tools/cio has little use on platforms without file system backend support, it causes the build to fail on these platforms. Let's skip it. Signed-off-by: Fujimoto Seiji <[email protected]>
This module contains a couple of functions for manipulating the file system. We don't need them except the platform does support the file system backend. Signed-off-by: Fujimoto Seiji <[email protected]>
hi, the tools system must be always enabled due to the following reason:
|
OK. Then I'll work on it so that we can run the perf test on Windows. I think we need to get two things straight for that goal.
For (1), we can probably make use of some existing implementation. What is your feeling about this? If you know a better alternative, |
so likely fluent-bit.c will face the same issue, what other projects are doing to solve the options/arguments stuff in Windows ? |
|
@edsiper For a cross-platform project originating from Unix world,
As to the first way, these projects essentially iterate args manually, https://github.com/git/git/blob/master/git.c#L124 As to the second way, I see libevent contains a Windows compatible https://github.com/libevent/libevent/tree/master/WIN32-Code I'm inclined to choose the option 2, mainly bacause chunkio and fluent-bit |
thanks for the info. Looking around I've found that I've placed a getopt() clone in Monkey mk_core interface here: https://github.com/monkey/monkey/tree/master/mk_core/external since the bits are in place, we just need to add a getopt_long() clone to it as a new file, we just need to be careful about the license. |
OK. I go add a clone of getopt_long() there.
Since several implementations are available, I'm going to investigate which clone is Anyway, thanks for your review and comments. I'll close this ticket now. |
This is a series of patch to make compilation on Windows easier.
344e18b build: do not build tools/cio if CIO_BACKEND_FILESYSTEM=Off
74ed9d2 build: also don't build "cio_utils.c" if CIO_BACKEND_FILESYSTEM=Off
Part of fluent/fluent-bit#960