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
DOC: building on Windows uses GCC with Meson, not MSVC #16322
Comments
Meson has a "buildtype" option, which can be set to release/debug/debugoptimized/minsize etc. This is described at https://mesonbuild.com/Builtin-options.html#core-options It will bidirectionally map to the individual options "debug" and "optimization" which are separately toggleable -- one sets -g, the other sets -O. Please check what your current setting is there. Per the listed table -- debugoptimized maps to So, what I think happens is that first the buildtype gets set to debugoptimized, which maps debug to true and optimization to 2, and then you override the individual debug option to true (which it already is, FWIW). What you actually want to do is override the buildtype to debug, which can be done with:
|
Thanks.
This should probably be in the scipy developer documentation as well. Edit: add "scipy" to make it clear which developer documentation needs to mention the option. |
Yes, that is correct. Well, more or less - you can use MSVC just fine if you have a matching Fortran compiler - i.e. Intel Fortran. The MSVC + gfortran hack is not available. |
The windows 10 wiki page, maintained by @mckib2, will need updating. |
This was from a while ago (pre-Pythran) building via venv/pip and can be considered unmaintained as changes with clang/Pythran broke the environment described in that page. Meson should hopefully be easier to setup. Best course of action is to delete/archive? |
There's no such thing as archiving wiki pages I think, so either deleting or adding a prominent note at the top saying this may be outdated is likely the way to go. That said, I can see a case for updating it. The main pain points there are things like installing the right compiler and downloading the right OpenBLAS, dealing with PowerShell and Chocolatey. Those are probably not things to include in the contributor docs. I'd probably reference |
When looking at the meson-generated
build.ninja
on windows, on a machine that is duplicating the CI build, it seems there is no use of msvc only gcc. Is this correct? If so it might be nice to document this in the meson build faq. Also I think the build requires the rtools gcc compiler, I have had problems with standard mingw.Another niggle:
meson build --debug
on windows sets the gcc flags to"-O2" "-g"
. Is using-O2
intentional for the debug builds?The text was updated successfully, but these errors were encountered: