mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 21:21:12 +00:00
msys2: Allow disabling failures on warning
This commit is contained in:
parent
1efbb1392d
commit
d68bff3c47
2 changed files with 6 additions and 0 deletions
|
@ -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.'
|
||||
|
|
4
setup.py
4
setup.py
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue