diff --git a/mesonbuild/coredata.py b/mesonbuild/coredata.py index 51b7a15ba2db..238c9cb0ad5a 100644 --- a/mesonbuild/coredata.py +++ b/mesonbuild/coredata.py @@ -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