diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2020-10-15 03:32:10 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-11-17 17:44:43 +0200 |
commit | a9f054e269b74a2c2e6e911556ee702fdce23e1d (patch) | |
tree | 4c8abdd2f0a1d66e01484a74ef29f8156354b3fd | |
parent | 59cacbbfc17dffe4aede1dfaa93bd5e1a3e994b2 (diff) | |
download | meson-a9f054e269b74a2c2e6e911556ee702fdce23e1d.zip meson-a9f054e269b74a2c2e6e911556ee702fdce23e1d.tar.gz meson-a9f054e269b74a2c2e6e911556ee702fdce23e1d.tar.bz2 |
add warning for projects with manually specified -Werror
Point people to the "werror" builtin option.
-rw-r--r-- | mesonbuild/interpreter.py | 3 |
1 files changed, 3 insertions, 0 deletions
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) |