Fix backup-rust target to ignore failures.

This commit is contained in:
Jack Moffitt 2013-08-22 20:32:52 -06:00
parent 0c50d4374f
commit 5c380416a8

View file

@ -318,10 +318,14 @@ endif
# Because Rust takes a very long time to build and changes infrequently,
# the bots want to reuse it between builds. They can do so by running
# `make backup-rust` and `make restore-rust`.
#
# backup-rust is run before the build directory is cleaned. if it fails, that's ok.
#
# restore-rust is run after configure and before invoking make. if it fails, we must abort.
.PHONY: backup-rust restore-rust
backup-rust:
mv src/compiler/rust ..
-mv src/compiler/rust ..
restore-rust:
if [ -d ../rust ]; then rm -rf src/compiler/rust; mv ../rust src/compiler/; fi