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@chromium.org> Reviewed-on: http://review.coreboot.org/12473 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
parent
8b4f98a41f
commit
bdb4af8bfd
2
Makefile
2
Makefile
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
# in addition to the dependency below, create the file if it doesn't exist
|
# 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.
|
# 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
|
.xcompile: util/xcompile/xcompile
|
||||||
$< $(XGCCPATH) > $@.tmp
|
$< $(XGCCPATH) > $@.tmp
|
||||||
|
|
Loading…
Reference in New Issue