ir3/parser: make bison fail on warnings

This should hopefully prevent shift/reduce issues in the future. To help
debugging, also make bison always generate counterexamples.

Signed-off-by: Job Noorman <jnoorman@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39735>
This commit is contained in:
Job Noorman 2026-02-06 15:03:57 +01:00 committed by Marge Bot
parent ca4e48d743
commit 210993a13b

View file

@ -50,7 +50,7 @@ ir3_parser = custom_target(
input: 'ir3_parser.y',
output: ['ir3_parser.c', 'ir3_parser.h'],
command: [
prog_bison, '@INPUT@', '--name-prefix=ir3_yy', '--defines=@OUTPUT1@', '--output=@OUTPUT0@'
prog_bison, '@INPUT@', '--name-prefix=ir3_yy', '--defines=@OUTPUT1@', '--output=@OUTPUT0@', '-Werror', '-Wcounterexamples'
]
)