From 0376d655694747ba36aa2bfd94e5bce2d2f1efa8 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Mon, 14 Jul 2025 19:50:05 +0200 Subject: environment: really remove assertion Fixes: #14789 Signed-off-by: Paolo Bonzini --- mesonbuild/environment.py | 1 - test cases/unit/69 cross/nativefile.in | 2 +- 2 files changed, 1 insertion(+), 2 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.') diff --git a/test cases/unit/69 cross/nativefile.in b/test cases/unit/69 cross/nativefile.in index 054cf108d..9a639999d 100644 --- a/test cases/unit/69 cross/nativefile.in +++ b/test cases/unit/69 cross/nativefile.in @@ -1,2 +1,2 @@ [built-in options] -c_args = ['@c_args@'] +build.c_args = ['@c_args@'] -- cgit v1.2.3