aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/ninjabackend.py
diff options
context:
space:
mode:
authorAleksey Filippov <alekseyf@google.com>2018-02-19 00:47:48 +0000
committerAleksey Filippov <alekseyf@google.com>2018-03-11 23:36:04 +0000
commitd977b78f1b6f95a6eab3da8a6d7d9ad06d8b80fd (patch)
treeb26d6f472fbc31fe219d0cfaa04f0c78e9ea6800 /mesonbuild/backend/ninjabackend.py
parent6f8e541f5525d0d0947a5e3cb6707a0d99234db0 (diff)
downloadmeson-d977b78f1b6f95a6eab3da8a6d7d9ad06d8b80fd.zip
meson-d977b78f1b6f95a6eab3da8a6d7d9ad06d8b80fd.tar.gz
meson-d977b78f1b6f95a6eab3da8a6d7d9ad06d8b80fd.tar.bz2
Use itertools.chain() instead of list concatenation
Diffstat (limited to 'mesonbuild/backend/ninjabackend.py')
-rw-r--r--mesonbuild/backend/ninjabackend.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py
index c13720f..0c774c1 100644
--- a/mesonbuild/backend/ninjabackend.py
+++ b/mesonbuild/backend/ninjabackend.py
@@ -1084,7 +1084,7 @@ int dummy;
the build directory.
"""
result = OrderedSet()
- for dep in target.link_targets + target.link_whole_targets:
+ for dep in itertools.chain(target.link_targets, target.link_whole_targets):
for i in dep.sources:
if hasattr(i, 'fname'):
i = i.fname