Rename --no-error to --werror and flip default

We should not default to -Werror because that's not what we default to
anywhere in gstreamer, and it's bad for releases anyway. The CI will
be fixed to pass --werror manually.
This commit is contained in:
Nirbheek Chauhan 2018-09-05 17:30:27 +05:30
parent 3e714d0bae
commit 56130b0edd

View file

@ -23,9 +23,9 @@ class GstBuildConfigurer:
self.args = args
def get_configs(self):
if self.options.no_error:
return []
return ['--werror']
if self.options.werror:
return ['--werror']
return []
def configure_meson(self):
if not self.options.reconfigure:
@ -74,7 +74,7 @@ if __name__ == "__main__":
' You can also use `ninja reconfigure` to just'
' make sure meson is rerun but the build folder'
' is kept.')
parser.add_argument("--no-error", action='store_true',
parser.add_argument("--werror", action='store_true',
default=False, help="Do not error out on warnings")
options, args = parser.parse_known_args()