Skip to content

Commit

Permalink
backend/ninja: fix rust cfg parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
karolherbst authored and nirbheek committed Feb 22, 2023
1 parent 9b2d36c commit e0e4369
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesonbuild/backend/ninjabackend.py
Original file line number Diff line number Diff line change
Expand Up @@ -1787,7 +1787,7 @@ def _add_rust_project_entry(self, name: str, main_rust_file: str, args: Compiler
arg_itr: T.Iterator[str] = iter(args)
for arg in arg_itr:
if arg == '--cfg':
cfg.append(next(arg))
cfg.append(next(arg_itr))
elif arg.startswith('--cfg'):
cfg.append(arg[len('--cfg'):])

Expand Down

0 comments on commit e0e4369

Please sign in to comment.