Skip to content

Meson invalid method called on boolean option #829

@antonmeskildsen

Description

@antonmeskildsen

In commit 6502a67 , the extension_memory feature was changed to a boolean.

This breaks on line 45 in meson.build, where .enabled() is called on the option. The error is the following:

ERROR: Unknown method "enabled" in object <[BooleanHolder] holds [bool]: False> of type BooleanHolder.

I'm using Meson 10.2.

I have fixed this locally by simply reverting the option to a feature and setting the default to 'disabled'.

I can make a pull request if necessary but first, I want to understand why the change was made in the first place. The pull request #764 mentions removing the single quotes from boolean options, but this is not what was changed. It looks to me like this is a mistake but maybe I'm missing something?

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