Makefile: introduce the CMPBYT variable

master
Sébastien Hinderer 2020-06-05 23:08:58 +02:00
parent d9dc10ef0b
commit 1c158f4227
1 changed files with 5 additions and 2 deletions

View File

@ -152,10 +152,13 @@ core:
$(MAKE) coreall
# Check if fixpoint reached
CMPBYT := $(CAMLRUN) tools/cmpbyt
.PHONY: compare
compare:
@if $(CAMLRUN) tools/cmpbyt boot/ocamlc ocamlc \
&& $(CAMLRUN) tools/cmpbyt boot/ocamllex lex/ocamllex; \
@if $(CMPBYT) boot/ocamlc ocamlc \
&& $(CMPBYT) boot/ocamllex lex/ocamllex; \
then echo "Fixpoint reached, bootstrap succeeded."; \
else \
echo "Fixpoint not reached, try one more bootstrapping cycle."; \