Skip to content

default build options (strip, debug, optimization level) #27

Closed
@rgommers

Description

@rgommers

Yet another default to choose here. My expectation is that the meson.build files go with Meson's default here (see https://mesonbuild.com/Builtin-options.html#core-options), because they're mostly used for local development.

For wheels however, it's a lot less likely that debugging is needed, and more likely the user wants small binary size and good performance. So perhaps the defaults in mesonpy should be:

  • -Ddebug=false
  • -Dstrip=true
  • -Doptimization=2 (note that 3 typically doesn't help much and may do some unsafe optimizations that lead to test failures)

Stripping binaries leads to ~3x size reduction, which for SciPy means we go from 400 MB to 100 MB installed size. Savings add up very quickly when doing that for multiple packages. We always strip wheels before uploading to PyPI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions