From a9f054e269b74a2c2e6e911556ee702fdce23e1d Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Thu, 15 Oct 2020 03:32:10 -0400 Subject: add warning for projects with manually specified -Werror Point people to the "werror" builtin option. --- mesonbuild/interpreter.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index 138f6f8..6896a4d 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -4656,6 +4656,9 @@ different subdirectory. elif arg in optargs: mlog.warning('Consider using the built-in optimization level instead of using "{}".'.format(arg), location=self.current_node) + elif arg == '-Werror': + mlog.warning('Consider using the built-in werror option instead of using "{}".'.format(arg), + location=self.current_node) elif arg == '-g': mlog.warning('Consider using the built-in debug option instead of using "{}".'.format(arg), location=self.current_node) -- cgit v1.1