mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:36:20 +00:00
setup: Directly use --werror to set Werror
Using mesonconf -Dwerror afterward is failling because of https://github.com/ninja-build/ninja/issues/371 Using meson -Dwerror=true is failing currently for some reason.
This commit is contained in:
parent
8ebcfad265
commit
b45052b60e
1 changed files with 3 additions and 4 deletions
7
setup
7
setup
|
@ -26,8 +26,8 @@ def get_meson():
|
||||||
return accept_command(["meson.py", "meson"]), accept_command(["mesonconf.py", "mesonconf"])
|
return accept_command(["meson.py", "meson"]), accept_command(["mesonconf.py", "mesonconf"])
|
||||||
|
|
||||||
|
|
||||||
def get_configs(meson):
|
def get_configs():
|
||||||
return ['-D', 'werror=true']
|
return ['--werror']
|
||||||
|
|
||||||
|
|
||||||
def configure_meson(args, options):
|
def configure_meson(args, options):
|
||||||
|
@ -50,8 +50,7 @@ def configure_meson(args, options):
|
||||||
os.mkdir(build_dir)
|
os.mkdir(build_dir)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
subprocess.check_call([sys.executable, meson, "../"] + args, cwd=build_dir)
|
subprocess.check_call([sys.executable, meson, "../"] + args + get_configs(), cwd=build_dir)
|
||||||
subprocess.check_call([sys.executable, mesonconf] + get_configs(meson), cwd=build_dir)
|
|
||||||
print("\nYou can now build GStreamer and its various subprojects running:\n"
|
print("\nYou can now build GStreamer and its various subprojects running:\n"
|
||||||
" $ ninja -C %s" % build_dir)
|
" $ ninja -C %s" % build_dir)
|
||||||
except subprocess.CalledProcessError as e:
|
except subprocess.CalledProcessError as e:
|
||||||
|
|
Loading…
Reference in a new issue