Skip to content

Default -Dbuildtype=release cannot be overridden by native file #828

@frankier

Description

@frankier

I find it quite convenience to package together build options using Meson's native files. Unfortunately if I try to set the build type in a native file like e.g.:

[built-in options]
buildtype = 'debug'

this will not override the -Dbuildtype given by meson-python here (even though it's given earlier in the command line):

'-Dbuildtype=release',

I'm not sure whether this is something that should be fixed in Meson or meson-python. One workaround could be to put these defaults in a native file specified earlier in the command line. This should cause them to be overwritten by the user native file correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions