[igt-dev] [PATCH i-g-t 1/2] Use flex -i when building with meson.

Adam Sampson ats at offog.org
Tue Apr 3 22:48:43 UTC 2018


When built with automake, the assembler's tokeniser is built with -i,
making it case-insensitive. This wasn't being done with meson.

(The symptom was build failures in intel-vaapi-driver, which uses
register types like ":ub". In lex.l, they're written as ":UB", so the
lexer was rejecting them without -i.)

Signed-off-by: Adam Sampson <ats at offog.org>
---
 assembler/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/assembler/meson.build b/assembler/meson.build
index 7517d82f..c858bc0f 100644
--- a/assembler/meson.build
+++ b/assembler/meson.build
@@ -19,7 +19,7 @@ bison = find_program('bison')
 
 lgen = generator(flex,
 		output : '@BASENAME at .c',
-		arguments : ['-o', '@OUTPUT@', '@INPUT@'])
+		arguments : ['-i', '-o', '@OUTPUT@', '@INPUT@'])
 
 lfiles = lgen.process('lex.l')
 
-- 
2.17.0



More information about the igt-dev mailing list