From: Fred Morcos Date: Mon, 27 Nov 2023 15:20:09 +0000 (+0100) Subject: Meson: Rename the source file cache X-Git-Tag: rec-5.1.0-alpha1~80^2~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ff27d9506b78bb7258b5b85b0e7d4cabc2481e5;p=thirdparty%2Fpdns.git Meson: Rename the source file cache --- diff --git a/pdns/meson.build b/pdns/meson.build index f9cc1b5c72..80093753d9 100644 --- a/pdns/meson.build +++ b/pdns/meson.build @@ -1772,7 +1772,7 @@ if get_option('fuzz-targets') } endif -source_deps = {} +source_deps_cache = {} foreach tool_name, tool_info: tool_libs tool_deps = tool_info['deps'] @@ -1784,9 +1784,9 @@ foreach tool_name, tool_info: tool_libs foreach source: all_sources if source.endswith('.cc') - if source not in source_deps + if source not in source_deps_cache # Create a new cached dependency for this source file. - source_deps += { + source_deps_cache += { source: declare_dependency( link_whole: static_library( 'pdns-' + source.replace('/', '__'), @@ -1797,7 +1797,7 @@ foreach tool_name, tool_info: tool_libs } endif - tool_sources += source_deps[source] + tool_sources += source_deps_cache[source] elif source.endswith('.hh') tool_headers += source else