[coreboot-gerrit] New patch to review for coreboot: build system: don't let a broken .xcompile linger in the tree

Patrick Georgi (pgeorgi@google.com) gerrit at coreboot.org
Thu Nov 19 09:54:09 CET 2015


Patrick Georgi (pgeorgi at google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/12473

-gerrit

commit f5ce0234085f1ab7950726a015881d45eeaaf4b9
Author: Patrick Georgi <pgeorgi at chromium.org>
Date:   Thu Nov 19 09:53:04 2015 +0100

    build system: don't let a broken .xcompile linger in the tree
    
    If the xcompile script fails (with an error message), we should delete
    the generated file so that later builds try to regenerate the file and
    re-report the problem if it still persists.
    
    Change-Id: I70ec37ca8ccb8ed3d8d0da48b326f5e0d722f314
    Signed-off-by: Patrick Georgi <pgeorgi at chromium.org>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 107f3c8..1c6fede 100644
--- a/Makefile
+++ b/Makefile
@@ -32,7 +32,7 @@
 
 # in addition to the dependency below, create the file if it doesn't exist
 # to silence stupid warnings about a file that would be generated anyway.
-$(if $(wildcard .xcompile),,$(eval $(shell util/xcompile/xcompile $(XGCCPATH) > .xcompile)))
+$(if $(wildcard .xcompile),,$(eval $(shell util/xcompile/xcompile $(XGCCPATH) > .xcompile || rm -f .xcompile)))
 
 .xcompile: util/xcompile/xcompile
 	$< $(XGCCPATH) > $@.tmp



More information about the coreboot-gerrit mailing list