summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOle André Vadla Ravnås <oleavr@gmail.com>2024-04-21 20:49:33 +0200
committerDylan Baker <dylan@pnwbakers.com>2024-04-22 09:41:43 -0700
commit0cec1c03d8f0d294027a954c5f350ab2911c5b18 (patch)
tree42ea23a1ee0de9c7d4c2ec140c20845ff48fffac
parentf233b7b98dc77937ba3448488fe7c66575c20aa6 (diff)
downloadmeson-0cec1c03d8f0d294027a954c5f350ab2911c5b18.tar.gz
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.
-rw-r--r--mesonbuild/coredata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/coredata.py b/mesonbuild/coredata.py
index f6eb65989..3cf873fee 100644
--- a/mesonbuild/coredata.py
+++ b/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