Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion mesonbuild/modules/codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ def yacc_method(self, state: ModuleState, args: T.Tuple, kwargs: FindYaccKwargs)
node=state.current_node)
return YaccGenerator(name, bin)

yacc_args: T.List[str] = ['@INPUT@', '-o', '@OUTPUT0@']
yacc_args: T.List[str] = []

impl = T.cast('YaccImpls', bin.name)
if impl == 'yacc' and isinstance(bin, ExternalProgram):
Expand All @@ -433,6 +433,7 @@ def yacc_method(self, state: ModuleState, args: T.Tuple, kwargs: FindYaccKwargs)
'output location be configurable, and may not work.',
fatal=False)
yacc_args.append('-H')
yacc_args.extend(['-o', '@OUTPUT0@', '@INPUT@'])
return YaccGenerator(name, bin, T.cast('ImmutableListProtocol[str]', yacc_args))


Expand Down
Loading