summaryrefslogtreecommitdiffstats
path: root/src/intel/genxml
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/genxml
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/genxml')
-rw-r--r--src/intel/genxml/meson.build3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/intel/genxml/meson.build b/src/intel/genxml/meson.build
index 30c0d8bf2f6..371f85307c8 100644
--- a/src/intel/genxml/meson.build
+++ b/src/intel/genxml/meson.build
@@ -48,12 +48,11 @@ genX_bits_h = custom_target(
gen_xml_pack = []
foreach f : gen_xml_files
_name = '@0@_pack.h'.format(f.split('.')[0])
- _xml = custom_target(
+ gen_xml_pack += custom_target(
_name,
input : ['gen_pack_header.py', f],
output : _name,
command : [prog_python2, '@INPUT@'],
capture : true,
)
- gen_xml_pack += _xml
endforeach