Mesa (master): genxml: Handle failure of Python codegen scripts.
Matt Turner
mattst88 at kemper.freedesktop.org
Wed Oct 26 21:06:49 UTC 2016
Module: Mesa
Branch: master
Commit: 8e5aed5b56bc390b974559d9586a60f62981e172
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8e5aed5b56bc390b974559d9586a60f62981e172
Author: Matt Turner <mattst88 at gmail.com>
Date: Wed Oct 26 12:51:32 2016 -0700
genxml: Handle failure of Python codegen scripts.
---
src/intel/Makefile.genxml.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/intel/Makefile.genxml.am b/src/intel/Makefile.genxml.am
index 2df223a..2ed2741 100644
--- a/src/intel/Makefile.genxml.am
+++ b/src/intel/Makefile.genxml.am
@@ -33,7 +33,7 @@ $(GENXML_GENERATED_FILES): genxml/gen_pack_header.py
.xml_pack.h:
$(MKDIR_GEN)
- $(PYTHON_GEN) $(srcdir)/genxml/gen_pack_header.py $< > $@
+ $(PYTHON_GEN) $(srcdir)/genxml/gen_pack_header.py $< > $@ || ($(RM) $@; false)
# xxd generates variable names based on the path of the input file. We
# prefer to generate our own name here, so it doesn't vary from
More information about the mesa-commit
mailing list