From 044d213086be1a7d2f9b9dc16766d37852bd95b2 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Mon, 12 Oct 2020 14:39:27 +0100 Subject: [PATCH] scons: fix SPIR-V -> NIR build Signed-off-by: Rhys Perry Tested-by: Vinson Lee Reviewed-by: Roland Scheidegger Fixes: 18f9fc919e1 ('spirv: add and use a generator id enum') Part-of: --- src/compiler/SConscript.spirv | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/compiler/SConscript.spirv b/src/compiler/SConscript.spirv index 49410881d0b..65ced55cbca 100644 --- a/src/compiler/SConscript.spirv +++ b/src/compiler/SConscript.spirv @@ -39,6 +39,13 @@ env.CodeGenerate( command = python_cmd + ' $SCRIPT $SOURCE $TARGET' ) +env.CodeGenerate( + target = 'spirv/vtn_generator_ids.h', + script = 'spirv/vtn_generator_ids_h.py', + source = ['spirv/spir-v.xml'], + command = python_cmd + ' $SCRIPT $SOURCE $TARGET' +) + # parse Makefile.sources source_lists = env.ParseSourceList('Makefile.sources')