meson: use modern syntax for dict checks

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2026-07-07 13:40:13 +02:00
parent 9155c0a5b9
commit f731334d84
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -2354,7 +2354,7 @@ foreach dict : executables
sources += exe_sources
endif
if dict.has_key('export')
if 'export' in dict
exported_by_name += {
name : {
'exported' : exe.extract_objects(dict['export']),
@@ -2718,7 +2718,7 @@ if meson.version().version_compare('>=1.4.0')
uniq = {}
foreach source : sources
if uniq.has_key(source.full_path())
if source.full_path() in uniq
continue
endif
uniq += {source.full_path(): source}