build: fix byacc invocation
authorRan Benita <ran@unusedvar.com>
Sat, 8 Aug 2020 11:35:36 +0000 (14:35 +0300)
committerRan Benita <ran@unusedvar.com>
Sat, 8 Aug 2020 11:43:09 +0000 (14:43 +0300)
Fixes: https://github.com/xkbcommon/libxkbcommon/issues/133#issuecomment-670902025
Reported-by: Edward-0
Signed-off-by: Ran Benita <ran@unusedvar.com>
meson.build

index a4b0f7b..e7d75aa 100644 (file)
@@ -145,7 +145,7 @@ if bison.found()
     yacc_gen = generator(
         bison,
         output: ['@BASENAME@.c', '@BASENAME@.h'],
-        arguments: ['@INPUT@', '--defines=@OUTPUT1@', '--output=@OUTPUT0@', '-p _xkbcommon_'],
+        arguments: ['--defines=@OUTPUT1@', '-o', '@OUTPUT0@', '-p', '_xkbcommon_', '@INPUT@'],
     )
 else
     byacc = find_program('byacc', required: false)
@@ -153,7 +153,7 @@ else
         yacc_gen = generator(
             byacc,
             output: ['@BASENAME@.c', '@BASENAME@.h'],
-            arguments: ['@INPUT@', '-H', '@OUTPUT1@', '-o', '@OUTPUT0@', '-p _xkbcommon_'],
+            arguments: ['-H', '@OUTPUT1@', '-o', '@OUTPUT0@', '-p', '_xkbcommon_', '@INPUT@'],
         )
     else
         error('Could not find a compatible YACC program (bison or byacc)')