diff options
author | Dylan Baker <[email protected]> | 2017-12-11 16:16:56 -0800 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2018-01-11 15:40:02 -0800 |
commit | 60856a7b4982aaaa4f22a002878d5d78cd63e272 (patch) | |
tree | 9983b6c48a7d676c3b846829f69b67cdd6825a52 /src/intel/vulkan/meson.build | |
parent | 4ccb9816737945159289527322e759d92bf7a4d6 (diff) |
meson: don't use intermediate variables that are immediately discarded
For things like:
loop
x = func()
list += x
end
just do:
loop
list += func()
end
Acked-by: Eric Engestrom <[email protected]>
Signed-off-by: Dylan Baker <[email protected]>
Diffstat (limited to 'src/intel/vulkan/meson.build')
-rw-r--r-- | src/intel/vulkan/meson.build | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/intel/vulkan/meson.build b/src/intel/vulkan/meson.build index 66266a0e95a..4cd7a025813 100644 --- a/src/intel/vulkan/meson.build +++ b/src/intel/vulkan/meson.build @@ -89,10 +89,9 @@ foreach g : [['70', ['gen7_cmd_buffer.c']], ['75', ['gen7_cmd_buffer.c']], ['80', ['gen8_cmd_buffer.c']], ['90', ['gen8_cmd_buffer.c']], ['100', ['gen8_cmd_buffer.c']]] _gen = g[0] - _files = g[1] - _lib = static_library( + libanv_gen_libs += static_library( 'libanv_gen@0@'.format(_gen), - [anv_gen_files, _files, block_entrypoints], + [anv_gen_files, g[1], block_entrypoints], include_directories : [ inc_common, inc_compiler, inc_drm_uapi, inc_intel, inc_vulkan_util, inc_vulkan_wsi, @@ -103,7 +102,6 @@ foreach g : [['70', ['gen7_cmd_buffer.c']], ['75', ['gen7_cmd_buffer.c']], ], dependencies : [dep_libdrm, dep_valgrind], ) - libanv_gen_libs += _lib endforeach libanv_files = files( |