meson: Enable -Wno-deprecated only for bison > 2.3.
authorVinson Lee <vlee@freedesktop.org>
Fri, 28 Feb 2020 05:01:55 +0000 (21:01 -0800)
committerVinson Lee <vlee@freedesktop.org>
Mon, 2 Mar 2020 02:13:52 +0000 (18:13 -0800)
commit1e43910aa2e018a1819bcfef6916d5ce5e1e7276
tree2fc7dadd0dfa53f54d7bc7e011bcc62cdd7f1141
parent5306b662dd59ac8accccf25b81ee97742ce71849
meson: Enable -Wno-deprecated only for bison > 2.3.

Older versions of bison do not support the -W option.

Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2571
Fixes: 11a1cb2fa8da ("meson: Disable bison's -Wdeprecated since we still support old bison.")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3993>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3993>
meson.build