Skip to content

Commit

Permalink
coredata: Fix is_per_machine_option() for builtins
Browse files Browse the repository at this point in the history
The keys in BUILTIN_OPTIONS_PER_MACHINE are OptionKey values, not
strings.

This fixes a regression introduced in 71db6b0.
  • Loading branch information
oleavr committed Apr 21, 2024
1 parent 9e3b3db commit e6d0ef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesonbuild/coredata.py
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ def _set_others_from_buildtype(self, value: str) -> bool:

@staticmethod
def is_per_machine_option(optname: OptionKey) -> bool:
if optname.name in BUILTIN_OPTIONS_PER_MACHINE:
if optname.as_host() in BUILTIN_OPTIONS_PER_MACHINE:
return True
return optname.lang is not None

Expand Down

0 comments on commit e6d0ef2

Please sign in to comment.