aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/gnome.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-12-04 21:24:59 -0800
committerEli Schwartz <eschwartz93@gmail.com>2022-01-18 21:58:24 -0500
commitcd6e2c85a77b05472cb816a295bca0e1549e3557 (patch)
tree7aaca682c6eda47aff885bbdc498d6df9d34eabf /mesonbuild/modules/gnome.py
parent216435b2ae5df1674c7b8819eea7d453f535b6f5 (diff)
downloadmeson-cd6e2c85a77b05472cb816a295bca0e1549e3557.zip
meson-cd6e2c85a77b05472cb816a295bca0e1549e3557.tar.gz
meson-cd6e2c85a77b05472cb816a295bca0e1549e3557.tar.bz2
modules/gnome: use itertools.chain instead of list concatenation
This is better as it avoids building unnecessary lists, and two fixes the typing issue from concatenating lists of different types.
Diffstat (limited to 'mesonbuild/modules/gnome.py')
-rw-r--r--mesonbuild/modules/gnome.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
index f2a863c..3300bd5 100644
--- a/mesonbuild/modules/gnome.py
+++ b/mesonbuild/modules/gnome.py
@@ -16,6 +16,7 @@
functionality such as gobject-introspection, gresources and gtk-doc'''
import copy
+import itertools
import functools
import os
import subprocess
@@ -1106,7 +1107,7 @@ class GnomeModule(ExtensionModule):
scan_command += scan_cflags
scan_command += ['--cflags-end']
scan_command += state.get_include_args(inc_dirs)
- scan_command += state.get_include_args(list(gi_includes) + gir_inc_dirs + inc_dirs, prefix='--add-include-path=')
+ scan_command += state.get_include_args(itertools.chain(gi_includes, gir_inc_dirs, inc_dirs), prefix='--add-include-path=')
scan_command += list(scan_internal_ldflags)
scan_command += self._scan_gir_targets(state, girtargets)
scan_command += self._scan_langs(state, [lc[0] for lc in langs_compilers])