-
Notifications
You must be signed in to change notification settings - Fork 33
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
Windows: fix Makefile.Windows #197
Conversation
After fixing the Another PR to clean-up the mess in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, but still fails in CI with:
link -nologo -incremental:no -debug -map -verbose -out:target/client.exe common.obj client.obj target/release/rustls_ffi.lib advapi32.lib userenv.lib ws2_32.lib > link.tmp
link: unknown option -- n
According to some googling, it sounds like this is most likely because there is a copy of the MinGW linker in the path ahead of the MSVC linker. I'm not sure how best to resolve. If we can figure out the page we can move it aside.
Fix typo. Co-authored-by: Jacob Hoffman-Andrews <[email protected]>
Add a |
I added
So it seems like we actually are getting the right linker? I'm pretty mystified about why we're getting the "unknown option" error. |
Thanks for doing this! I messed around with GitHub Actions and got things working. I put the resulting fixes in #211. Closing this PR out in favor of that one. |
The |
Adapted from #197 by gvanem. I squashed the commits from that PR, and added my own on top. We need to remove the link.exe provided by MSYS and Git to make sure they don't interfere with MSVC's link.exe. Also, add a #define for strncasecmp, which is not available on Windows.
Extend the Windows-build (for CI) with:
target/client.exe
andtarget/server.exe
.src/crustls.h
is no longer generated (why should it?)target/release/rustls_ffi.lib
.-D_CRT_NONSTDC_NO_WARNINGS
.