Skip to content

Commit fdcfe0d

Browse files
committed
use host ocamlrun when cross compiling
1 parent 5f45428 commit fdcfe0d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,7 @@ toplevel/opttoploop.cmx: otherlibs/dynlink/dynlink.cmxa
10141014
make_opcodes := tools/make_opcodes$(EXE)
10151015

10161016
bytecomp/opcodes.ml: runtime/caml/instruct.h $(make_opcodes)
1017-
runtime/ocamlrun$(EXE) $(make_opcodes) -opcodes < $< > $@
1017+
$(CAMLRUN) $(make_opcodes) -opcodes < $< > $@
10181018

10191019
bytecomp/opcodes.mli: bytecomp/opcodes.ml
10201020
$(CAMLC) -i $< > $@

tools/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ $(make_opcodes): make_opcodes.ml
255255
$(CAMLC) $< -o $@
256256

257257
opnames.ml: $(ROOTDIR)/runtime/caml/instruct.h $(make_opcodes)
258-
$(ROOTDIR)/runtime/ocamlrun$(EXE) $(make_opcodes) -opnames < $< > $@
258+
$(CAMLRUN) $(make_opcodes) -opnames < $< > $@
259259

260260
clean::
261261
rm -f opnames.ml make_opcodes make_opcodes.exe make_opcodes.ml
@@ -354,7 +354,7 @@ caml_tex := caml-tex$(EXE)
354354

355355
$(caml_tex): INCLUDES += $(addprefix -I $(ROOTDIR)/otherlibs/,str $(UNIXLIB))
356356
$(caml_tex): $(caml_tex_files)
357-
$(ROOTDIR)/runtime/ocamlrun$(EXE) $(ROOTDIR)/ocamlc$(EXE) -nostdlib \
357+
$(CAMLRUN) $(ROOTDIR)/ocamlc$(EXE) -nostdlib \
358358
-I $(ROOTDIR)/stdlib $(LINKFLAGS) -linkall \
359359
-o $@ -no-alias-deps $^
360360

0 commit comments

Comments
 (0)