summaryrefslogtreecommitdiff
path: root/mesonbuild/environment.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-03-26 20:35:36 +0100
committerDylan Baker <dylan@pnwbakers.com>2025-04-02 08:59:56 -0700
commit8e92f1ee872081417d470e75a32edbadda8972b6 (patch)
tree2c68f70e3521396813fa7dfe48ecb22b5d52fdda /mesonbuild/environment.py
parent31114260e575af75d5e8d01c2852092704ef8f24 (diff)
downloadmeson-8e92f1ee872081417d470e75a32edbadda8972b6.tar.gz
environment: remove incorrect check for subproject options
Because this check is done on the actual key, it will fail even if "subproject:project options" is used. The correct test is already performed in mfilestr2key. Fixes: #14373
Diffstat (limited to 'mesonbuild/environment.py')
-rw-r--r--mesonbuild/environment.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py
index 5640b9de3..4999be1ec 100644
--- a/mesonbuild/environment.py
+++ b/mesonbuild/environment.py
@@ -759,8 +759,6 @@ class Environment:
for strk, v in values.items():
# Project options are always for the host machine
key = self.mfilestr2key(strk, section_subproject, machine)
- if key.subproject:
- raise MesonException('Do not set subproject options in [built-in options] section, use [subproject:built-in options] instead.')
self.options[key] = v
def _set_default_options_from_env(self) -> None: