summaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/options.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/options.py b/mesonbuild/options.py
index b9f17cf72..346abcc3a 100644
--- a/mesonbuild/options.py
+++ b/mesonbuild/options.py
@@ -1117,6 +1117,9 @@ class OptionStore:
del self.augments[key]
dirty = True
else:
+ if key not in self.options:
+ raise MesonException(f"Unknown option: {key}")
+
# TODO: For project options, "dropping an augment" means going
# back to the superproject's value. However, it's confusing
# that -U does not simply remove the option from the stored