Skip to content

Commit

Permalink
coredata: Fix is_per_machine_option() for builtins
Browse files Browse the repository at this point in the history
This fixes a regression introduced in 71db6b0.
  • Loading branch information
oleavr committed Apr 21, 2024
1 parent d9f4910 commit 811109c
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 @@ -932,7 +932,7 @@ def _set_others_from_buildtype(self, value: str) -> bool:
def is_per_machine_option(optname: OptionKey) -> bool:
if optname.subproject and optname.is_project():
return True
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 811109c

Please sign in to comment.