summaryrefslogtreecommitdiffstats
path: root/src/intel/isl/meson.build
diff options
context:
space:
mode:
authorDylan Baker <[email protected]>2017-12-11 16:16:56 -0800
committerDylan Baker <[email protected]>2018-01-11 15:40:02 -0800
commit60856a7b4982aaaa4f22a002878d5d78cd63e272 (patch)
tree9983b6c48a7d676c3b846829f69b67cdd6825a52 /src/intel/isl/meson.build
parent4ccb9816737945159289527322e759d92bf7a4d6 (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/isl/meson.build')
-rw-r--r--src/intel/isl/meson.build6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/intel/isl/meson.build b/src/intel/isl/meson.build
index 116750d86d6..0838c32af32 100644
--- a/src/intel/isl/meson.build
+++ b/src/intel/isl/meson.build
@@ -53,15 +53,13 @@ foreach g : [['40', isl_gen4_files], ['50', []], ['60', isl_gen6_files],
['70', isl_gen7_files], ['75', []], ['80', isl_gen8_files],
['90', isl_gen9_files], ['100', []]]
_gen = g[0]
- _sources = g[1]
- _lib = static_library(
+ isl_gen_libs += static_library(
'libisl_gen@0@'.format(_gen),
- [_sources, isl_gen_files, gen_xml_pack],
+ [g[1], isl_gen_files, gen_xml_pack],
include_directories : [inc_common, inc_intel],
c_args : [c_vis_args, no_override_init_args,
'-DGEN_VERSIONx10=@0@'.format(_gen)],
)
- isl_gen_libs += _lib
endforeach
isl_format_layout_c = custom_target(