coredata: Fix is_per_machine_option() for builtins

The keys in BUILTIN_OPTIONS_PER_MACHINE are OptionKey values, not
strings.

This fixes a regression introduced in 71db6b0.
pull/13071/merge
Ole André Vadla Ravnås 10 months ago committed by Dylan Baker
parent f233b7b98d
commit 0cec1c03d8
  1. 2
      mesonbuild/coredata.py

@ -886,7 +886,7 @@ class CoreData:
@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

Loading…
Cancel
Save