backend/ninja: fix rust cfg parsing

pull/11437/head
Karol Herbst 2 years ago committed by Dylan Baker
parent 616bf1f79d
commit 9a2955743e
  1. 2
      mesonbuild/backend/ninjabackend.py

@ -1787,7 +1787,7 @@ class NinjaBackend(backends.Backend):
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'):])

Loading…
Cancel
Save