add warning for projects with manually specified -Werror

Point people to the "werror" builtin option.
pull/5682/merge
Eli Schwartz 4 years ago committed by Jussi Pakkanen
parent 59cacbbfc1
commit a9f054e269
  1. 3
      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)

Loading…
Cancel
Save