msys2: Allow disabling failures on warning

This commit is contained in:
Thibault Saunier 2016-12-13 21:36:25 -03:00
parent 1efbb1392d
commit d68bff3c47
2 changed files with 6 additions and 0 deletions

View file

@ -150,6 +150,8 @@ class Msys2Configurer(GstBuildConfigurer):
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Process some integers.')
parser.add_argument("--no-error", action='store_true',
default=False, help="Do not error out on warnings")
parser.add_argument("--reconfigure", action='store_true',
default=False, help='Force a full reconfiguration'
' meaning the build/ folder is removed.'

View file

@ -23,6 +23,8 @@ class GstBuildConfigurer:
self.args = args
def get_configs(self):
if self.options.no_error:
return []
return ['--werror']
def configure_meson(self):
@ -71,6 +73,8 @@ 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',
default=False, help="Do not error out on warnings")
options, args = parser.parse_known_args()
configurer = GstBuildConfigurer(options, args)