Skip to content

Commit

Permalink
Merge pull request ocaml#705 from shindere/fix-ocamlnat-build-on-windows
Browse files Browse the repository at this point in the history
Update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports.
  • Loading branch information
alainfrisch committed Jul 21, 2016
2 parents c2e986e + 3d83359 commit f19549f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Makefile.nt
Expand Up @@ -359,9 +359,16 @@ partialclean::

# The native toplevel

ocamlnat: ocamlopt otherlibs/dynlink/dynlink.cmxa $(NATTOPOBJS:.cmo=.cmx)
$(CAMLOPT) $(LINKFLAGS) otherlibs/dynlink/dynlink.cmxa -o ocamlnat \
$(NATTOPOBJS:.cmo=.cmx) -linkall
compilerlibs/ocamlopttoplevel.cmxa: $(OPTTOPLEVEL:.cmo=.cmx)
$(CAMLOPT) -a -o $@ $(OPTTOPLEVEL:.cmo=.cmx)
partialclean::
rm -f compilerlibs/ocamlopttoplevel.cmxa

ocamlnat: compilerlibs/ocamlcommon.cmxa compilerlibs/ocamloptcomp.cmxa \
compilerlibs/ocamlbytecomp.cmxa \
compilerlibs/ocamlopttoplevel.cmxa \
$(OPTTOPLEVELSTART:.cmo=.cmx)
$(CAMLOPT) $(LINKFLAGS) -linkall -o $@ $^

toplevel/opttoploop.cmx: otherlibs/dynlink/dynlink.cmxa

Expand Down

0 comments on commit f19549f

Please sign in to comment.