-
Notifications
You must be signed in to change notification settings - Fork 115
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
Add builds with \MD
flag for building Python extensions
#673
Conversation
\MD
flag for building Python extensions
What is the aim? To build using the Microsoft runtime as DLL rather than the Microsoft runtime as static lib? |
There's something wrong with the MSVC binaries built with MT: missing libgcc??
@tkralphs I hope I'm not misunderstanding something here? Or do I have wrong expectations? |
I don't think that the build system on master understands However, |
Looking at the logs, with enable-msvc=MD, the build ends up using MS, not gcc (good) With enable-msvc=MT the build uses gcc (bad).
|
Default compiler flags are defined in |
@svigerske Thanks for the hint! @tkralphs Am I missing something, or there doesn't seem to be support for values like |
With BuildTools 0.8, |
Thanks! That explains a lot. Apologies in advance for this basic question or my misunderstanding: Therefore, couldn't support for |
I think it's easy to just overwrite the compiler flags if one needs MT(d). As far as I know, it's advised to use MD(d) anyway, so that's the default already. Which means that I don't see the need for this PR. But that's for @tkralphs to follow-up. |
Exactly. |
You can just set |
LOL, I only now realize that Ted is trying to get "MD" builds, not "MT" builds. Should have been obvious from the PR title. You're right, just use |
@tkralphs BLUF: Please Close this PR for master, because the current master already builds good MD binaries. The current master already builds good MD binaries using simply Therefore, since the aim of this PR is to make MD binaries (not MT), this PR only makes things worse because the MTs dont work while the MD binaries are already OK. I think Stefan understood this all along, but it took me a bit longer to get there.. |
Sorry for the delay! Yes, sorry, I knew, but temporarily forgot, that master is completely different, so this PR can indeed be closed. However, the reason for digging into this, as I mentioned, is to make sure we can build Python extensions. This works well in stable branches, as long as we have |
Try adding builds with the
\MD
flag.