Skip to content

Commit 4443094

Browse files
bonzinieli-schwartz
authored andcommitted
environment: really remove assertion
Fixes: mesonbuild#14789 Signed-off-by: Paolo Bonzini <[email protected]> (cherry picked from commit 0376d65)
1 parent 38162e7 commit 4443094

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

mesonbuild/environment.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,6 @@ def __init__(self, source_dir: str, build_dir: T.Optional[str], cmd_options: cor
728728

729729
def mfilestr2key(self, machine_file_string: str, section: T.Optional[str], section_subproject: T.Optional[str], machine: MachineChoice) -> OptionKey:
730730
key = OptionKey.from_string(machine_file_string)
731-
assert key.machine == MachineChoice.HOST
732731
if key.subproject:
733732
suggestion = section if section == 'project options' else 'built-in options'
734733
raise MesonException(f'Do not set subproject options in [{section}] section, use [subproject:{suggestion}] instead.')
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[built-in options]
2-
c_args = ['@c_args@']
2+
build.c_args = ['@c_args@']

0 commit comments

Comments
 (0)