aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/backends.py
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2022-03-17 10:40:49 -0400
committerXavier Claessens <xclaesse@gmail.com>2022-09-27 11:15:07 -0400
commite1db50d4d9839cb29f73d7f4118f80262a2b47f3 (patch)
tree3d1cb7180c3883f9c4f67503a6e8831bc9f4a6de /mesonbuild/backend/backends.py
parent838367ca6040cef527955daf450639189b8cc931 (diff)
downloadmeson-e1db50d4d9839cb29f73d7f4118f80262a2b47f3.zip
meson-e1db50d4d9839cb29f73d7f4118f80262a2b47f3.tar.gz
meson-e1db50d4d9839cb29f73d7f4118f80262a2b47f3.tar.bz2
compilers: Cleanup a bit languages/suffixes lists
Use set where order does not matter, fix is_source() to really mean only source suffixes.
Diffstat (limited to 'mesonbuild/backend/backends.py')
-rw-r--r--mesonbuild/backend/backends.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py
index 53e3530..28cd73e 100644
--- a/mesonbuild/backend/backends.py
+++ b/mesonbuild/backend/backends.py
@@ -839,7 +839,7 @@ class Backend:
# Filter out headers and all non-source files
sources: T.List['FileOrString'] = []
for s in raw_sources:
- if self.environment.is_source(s) and not self.environment.is_header(s):
+ if self.environment.is_source(s):
sources.append(s)
elif self.environment.is_object(s):
result.append(s.relative_name())