diff options
author | Remi Thebault <remi.thebault@gmail.com> | 2022-06-09 21:19:56 +0200 |
---|---|---|
committer | Remi Thebault <remi.thebault@gmail.com> | 2022-06-09 21:19:56 +0200 |
commit | e9576a43611d751a8405525cf32ee0109787d161 (patch) | |
tree | 91b777ce1a3939aa59a5c129b35cfe1dd5c28589 | |
parent | 1d15c6f5022565e0ac029daa18be8b9c3a7e2ad0 (diff) | |
download | meson-e9576a43611d751a8405525cf32ee0109787d161.zip meson-e9576a43611d751a8405525cf32ee0109787d161.tar.gz meson-e9576a43611d751a8405525cf32ee0109787d161.tar.bz2 |
use compilers.lang_suffixes to determine lang
-rw-r--r-- | mesonbuild/backend/ninjabackend.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py index e9a435f..591865c 100644 --- a/mesonbuild/backend/ninjabackend.py +++ b/mesonbuild/backend/ninjabackend.py @@ -850,7 +850,7 @@ class NinjaBackend(backends.Backend): compiled_sources.append(s) source2object[s] = o obj_list.append(o) - if s.endswith('.d'): + if s.split('.')[-1] in compilers.lang_suffixes['d']: d_generated_deps.append(o) use_pch = self.environment.coredata.options.get(OptionKey('b_pch')) |