mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 19:21:06 +00:00
afd11f3383
The version of bison that ships with macOS is too old, so we need to provide our own version of it. Fixes https://gitlab.freedesktop.org/gstreamer/gst-build/-/issues/174 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/257>
14 lines
395 B
Python
Executable file
14 lines
395 B
Python
Executable file
#!/usr/bin/env python3
|
|
|
|
import os
|
|
import sys
|
|
import pathlib
|
|
import subprocess
|
|
|
|
srcdir = pathlib.Path("@SRCDIR@")
|
|
extractdir = pathlib.Path("@EXTRACTDIR@")
|
|
bison_path = srcdir / extractdir / 'bin/bison'
|
|
env = os.environ.copy()
|
|
env['BISON_PKGDATADIR'] = str(srcdir / extractdir / 'share/bison')
|
|
ret = subprocess.run([str(bison_path)] + sys.argv[1:], check=False, env=env)
|
|
sys.exit(ret.returncode)
|