options: machine_file_options keys are always OptionKeys
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
01da0686f6
commit
4219f0e978
|
@ -1301,12 +1301,7 @@ class OptionStore:
|
|||
if project_default_options is None:
|
||||
project_default_options = {}
|
||||
assert isinstance(machine_file_options, dict)
|
||||
for keystr, valstr in machine_file_options.items():
|
||||
if isinstance(keystr, str):
|
||||
# FIXME, standardise on Key or string.
|
||||
key = OptionKey.from_string(keystr)
|
||||
else:
|
||||
key = keystr
|
||||
for key, valstr in machine_file_options.items():
|
||||
# Due to backwards compatibility we ignore all build-machine options
|
||||
# when building natively.
|
||||
if not self.is_cross and key.is_for_build():
|
||||
|
|
Loading…
Reference in New Issue