aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2010-08-18 12:57:23 -0700
committerPatrick Walton <[email protected]>2010-08-18 12:57:23 -0700
commit61156ea714d18c48377ee15f1fa08a44990db2c1 (patch)
tree365d34b173a19cf6f278ea68a359288db0343d4c
parentAdd do-nothing obj type for lexer to rustc. (diff)
downloadrust-61156ea714d18c48377ee15f1fa08a44990db2c1.tar.xz
rust-61156ea714d18c48377ee15f1fa08a44990db2c1.zip
Fail during build if we can't determine the current Git revision
-rw-r--r--src/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 949490fa..f213cac1 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -305,7 +305,7 @@ all: $(CFG_COMPILER) $(MKFILES) $(GENERATED)
boot/util/version.ml: Makefile
$(CFG_QUIET)git log -1 \
- --format='let version = "prerelease (%h %ci)";;' >$@
+ --format='let version = "prerelease (%h %ci)";;' >$@ || exit 1
loc:
$(CFG_QUIET)wc -l $(BOOT_MLS) $(RUNTIME_CS) $(RUNTIME_HDR)