fix AttributeError in CustomTargetIndex.__repr__

pull/2832/head
Andrei Alexeyev 7 years ago committed by Jussi Pakkanen
parent caf151afb9
commit 84e47ab654
  1. 2
      mesonbuild/build.py

@ -1776,7 +1776,7 @@ class CustomTargetIndex:
def __repr__(self): def __repr__(self):
return '<CustomTargetIndex: {!r}[{}]>'.format( return '<CustomTargetIndex: {!r}[{}]>'.format(
self.target, self.target.output.index(self.output)) self.target, self.target.get_outputs().index(self.output))
def get_outputs(self): def get_outputs(self):
return [self.output] return [self.output]

Loading…
Cancel
Save