Skip to content

Commit 0b6071e

Browse files
committed
Fix build for modern menhir versions
1 parent 2b0e57c commit 0b6071e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

compiler/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,19 +107,19 @@ byte: $(BIN).byte
107107

108108
$(BIN).opt: $(GENSOURCES) $(OBJ:%.cmo=%.cmx) main/main.cmx
109109
$(OCAMLOPT) $(UNIXX) $(OCAMLOPTFLAGS) $(INCLUDES) \
110-
-I $(MENHIRLIB) menhirLib.cmx $(OBJ:%.cmo=%.cmx) main/main.cmx \
110+
-I $(MENHIRLIB) menhirLib.cmxa $(OBJ:%.cmo=%.cmx) main/main.cmx \
111111
-o $(BIN).opt
112112

113113
$(BIN).byte: $(GENSOURCES) $(OBJ) main/main.cmo
114114
$(OCAMLC) $(UNIX) $(OCAMLFLAGS) $(INCLUDES) \
115-
-I $(MENHIRLIB) menhirLib.cmo $(OBJ) main/main.cmo \
115+
-I $(MENHIRLIB) menhirLib.cma $(OBJ) main/main.cmo \
116116
-o $(BIN).byte
117117

118118
debug: OCAMLFLAGS += -g
119119
debug: byte debugprinter.cma
120120

121121
debugprinter.cma: $(OBJ)
122-
$(OCAMLC) -a -o $@ -I $(MENHIRLIB) menhirLib.cmo $^
122+
$(OCAMLC) -a -o $@ -I $(MENHIRLIB) menhirLib.cma $^
123123

124124
# Extra dependences
125125

tools/zlsdep/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ INCLUDES = $(DIRECTORIES:%=-I %)
2626

2727
byte: $(BIN).byte
2828
$(BIN).byte: $(OBJ)
29-
$(OCAMLC) $(OCAMLFLAGS) $(INCLUDES) -I $(MENHIRLIB) menhirLib.cmo $(OBJ) -o $(BIN).byte
29+
$(OCAMLC) $(OCAMLFLAGS) $(INCLUDES) -I $(MENHIRLIB) menhirLib.cma $(OBJ) -o $(BIN).byte
3030
ln -sf $(BIN).byte $(BIN)
3131

3232

0 commit comments

Comments
 (0)