summaryrefslogtreecommitdiff
path: root/mesonbuild/options.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/options.py')
-rw-r--r--mesonbuild/options.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/options.py b/mesonbuild/options.py
index 78f9f7fe5..5832461f0 100644
--- a/mesonbuild/options.py
+++ b/mesonbuild/options.py
@@ -841,7 +841,7 @@ class OptionStore:
#
# I did not do this yet, because it would make this MR even
# more massive than it already is. Later then.
- if not self.is_cross:
+ if not (self.is_cross and self.is_per_machine_option(key)):
key = key.as_host()
return key