glsl: build without bison

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8739>
This commit is contained in:
Ella-0
2021-01-27 14:16:08 +00:00
committed by Marge Bot
parent e7977b8c49
commit a18ac347cf
7 changed files with 96 additions and 40 deletions

View File

@@ -1724,6 +1724,8 @@ else
asan_c_args = ['-DBUILT_WITH_ASAN=0']
endif
yacc_is_bison = true
if build_machine.system() == 'windows'
# Prefer the winflexbison versions, they're much easier to install and have
# better windows support.
@@ -1746,7 +1748,12 @@ if build_machine.system() == 'windows'
prog_bison = find_program('bison', 'yacc', required : with_any_opengl)
endif
else
prog_bison = find_program('bison', required : with_any_opengl)
prog_bison = find_program('bison', required : false)
if not prog_bison.found()
prog_bison = find_program('byacc', required : with_any_opengl)
yacc_is_bison = false
endif
# Disable deprecated keyword warnings, since we have to use them for
# old-bison compat. See discussion in