diff --git a/mesonbuild/coredata.py b/mesonbuild/coredata.py index f6eb659896e9..3cf873fee740 100644 --- a/mesonbuild/coredata.py +++ b/mesonbuild/coredata.py @@ -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