summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesonbuild/environment.py1
-rw-r--r--test cases/unit/69 cross/nativefile.in2
2 files changed, 1 insertions, 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@']