summaryrefslogtreecommitdiff
path: root/mesonbuild/environment.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-07-14 19:50:05 +0200
committerDylan Baker <dylan@pnwbakers.com>2025-07-14 15:44:27 -0700
commit0376d655694747ba36aa2bfd94e5bce2d2f1efa8 (patch)
tree13806872434b6a3889be4b01f2fbf1a8cacd6878 /mesonbuild/environment.py
parent23e4901088cc4690d8ffbef9796421e42d77f5bd (diff)
downloadmeson-0376d655694747ba36aa2bfd94e5bce2d2f1efa8.tar.gz
environment: really remove assertion
Fixes: #14789 Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mesonbuild/environment.py')
-rw-r--r--mesonbuild/environment.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py
index a6783c50c..19e8b4e2e 100644
--- a/mesonbuild/environment.py
+++ b/mesonbuild/environment.py
@@ -729,7 +729,6 @@ class Environment:
def mfilestr2key(self, machine_file_string: str, section: T.Optional[str], section_subproject: T.Optional[str], machine: MachineChoice) -> OptionKey:
key = OptionKey.from_string(machine_file_string)
- assert key.machine == MachineChoice.HOST
if key.subproject:
suggestion = section if section == 'project options' else 'built-in options'
raise MesonException(f'Do not set subproject options in [{section}] section, use [subproject:{suggestion}] instead.')