Une MAJ de sécurité est nécessaire sur notre version actuelle. Elle sera effectuée lundi 02/08 entre 12h30 et 13h. L'interruption de service devrait durer quelques minutes (probablement moins de 5 minutes).

Commit 441ee391 authored by POTTIER Francois's avatar POTTIER Francois
Browse files

Fix src/Makefile so that menhirLib.cmxs is built at stage 1 already.

parent 4c0e01e4
......@@ -7,6 +7,11 @@ ifndef TARGET
TARGET := native
endif
# Build .cmxs in case of native compilation.
ifneq ($(TARGET),byte)
MENHIRLIBCMXS := menhirLib.cmxs
endif
# ----------------------------------------------------------------------------
# Ocamlbuild tool and settings.
......@@ -35,7 +40,8 @@ bootstrap:
# Build Menhir using ocamlyacc.
stage1:
@ $(OCAMLBUILD) -build-dir _stage1 menhir.$(TARGET)
@ $(OCAMLBUILD) -build-dir _stage1 \
$(MENHIRLIBCMXS) menhir.$(TARGET)
# ----------------------------------------------------------------------------
# Stage 2.
......@@ -51,11 +57,6 @@ SRC := ..
FLAGS := -v -lg 1 -la 1 -lc 1 --table --infer --stdlib $(SRC) --strict --fixed-exception --canonical
# Build .cmxs in case of native compilation.
ifneq ($(TARGET),byte)
MENHIRLIBCMXS := menhirLib.cmxs
endif
stage2:
@ $(OCAMLBUILD) -build-dir _stage2 -tag fancy_parser \
-use-menhir -menhir "$(SRC)/_stage1/menhir.$(TARGET) $(FLAGS)" \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment