Skip to content

default_options in subprojects override commandline options #14690

Closed
@lb90

Description

@lb90

If I run meson setup --optimization=0 and a subproject has

project('mylib', 'c',
        default_options: ['optimization=3'])

Then the subproject is built with /O3.

Minimal sample: meson-issue.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions