Commit eebe355
committed
ENH: adjust default build options
Switch from debug=false, optimization=2 to buildtype=release. Despite
what the Meson documentation says, the former does not change the
default buildtype=debug, which undesired effects on other settings
derived from the value of the buildtype option.
Whit the default b_vscrt=from_buildtype option, Meson instructs the
MSVC compiler to use the debug version of the VS runtime library when
buildtype=debug. This causes the linker look for the debug build of
all the linked DLLs. The Python distribution for Windows does not
contain a debug version of the python.dll and linking fails. To avoid
this issue when the user explicitly asks for a debug build, also set
b_vscrt=mt.
The b_ndebug=if-release option set by meson-python also looks at the
value of the buildtype and not to the value of the debug options.
Setting buildtype=release has the desired effect of disabling
assertions.
The prefix, python.purelibdir, and python.platlibdir build options are
no more necessary after the heuristic for determining the location
where installed files need to be placer from their installation
location has been removed in mesonbuild#280. Remove them.
Fixes mesonbuild#381.1 parent 936eee3 commit eebe355
2 files changed
Lines changed: 4 additions & 43 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | 51 | | |
53 | 52 | | |
54 | 53 | | |
| |||
728 | 727 | | |
729 | 728 | | |
730 | 729 | | |
731 | | - | |
732 | 730 | | |
733 | | - | |
734 | 731 | | |
735 | 732 | | |
736 | 733 | | |
737 | | - | |
738 | | - | |
| 734 | + | |
| 735 | + | |
739 | 736 | | |
740 | | - | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | | - | |
745 | | - | |
746 | | - | |
747 | | - | |
748 | | - | |
749 | | - | |
750 | | - | |
| 737 | + | |
| 738 | + | |
751 | 739 | | |
752 | 740 | | |
753 | 741 | | |
| |||
This file was deleted.
0 commit comments