Fail during build if we can't determine the current Git revision

This commit is contained in:
Patrick Walton 2010-08-18 12:57:23 -07:00
parent 51412cb5fa
commit 61156ea714

View File

@ -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)