build: fix byacc invocation
Fixes: https://github.com/xkbcommon/libxkbcommon/issues/133#issuecomment-670902025 Reported-by: Edward-0 Signed-off-by: Ran Benita <ran@unusedvar.com>master
parent
9b9c5f2094
commit
a0c1c2f42d
|
@ -145,7 +145,7 @@ if bison.found()
|
||||||
yacc_gen = generator(
|
yacc_gen = generator(
|
||||||
bison,
|
bison,
|
||||||
output: ['@BASENAME@.c', '@BASENAME@.h'],
|
output: ['@BASENAME@.c', '@BASENAME@.h'],
|
||||||
arguments: ['@INPUT@', '--defines=@OUTPUT1@', '--output=@OUTPUT0@', '-p _xkbcommon_'],
|
arguments: ['--defines=@OUTPUT1@', '-o', '@OUTPUT0@', '-p', '_xkbcommon_', '@INPUT@'],
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
byacc = find_program('byacc', required: false)
|
byacc = find_program('byacc', required: false)
|
||||||
|
@ -153,7 +153,7 @@ else
|
||||||
yacc_gen = generator(
|
yacc_gen = generator(
|
||||||
byacc,
|
byacc,
|
||||||
output: ['@BASENAME@.c', '@BASENAME@.h'],
|
output: ['@BASENAME@.c', '@BASENAME@.h'],
|
||||||
arguments: ['@INPUT@', '-H', '@OUTPUT1@', '-o', '@OUTPUT0@', '-p _xkbcommon_'],
|
arguments: ['-H', '@OUTPUT1@', '-o', '@OUTPUT0@', '-p', '_xkbcommon_', '@INPUT@'],
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
error('Could not find a compatible YACC program (bison or byacc)')
|
error('Could not find a compatible YACC program (bison or byacc)')
|
||||||
|
|
Loading…
Reference in New Issue