From 4f7c0d0b62e0599f68b37b39d6d346cfb02295f0 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Tue, 12 Oct 2021 17:40:11 -0400 Subject: [PATCH] optinterpreter: Downgrade error to deprecation --- mesonbuild/optinterpreter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/optinterpreter.py b/mesonbuild/optinterpreter.py index d7565f27b..7818915af 100644 --- a/mesonbuild/optinterpreter.py +++ b/mesonbuild/optinterpreter.py @@ -194,7 +194,7 @@ class OptionInterpreter: key = mesonlib.OptionKey(opt_name, self.subproject) if key in self.options: - raise OptionException(f'Option {opt_name} already exists') + mlog.deprecation(f'Option {opt_name} already exists.') self.options[key] = opt @permittedKwargs({'value', 'yield'})