summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorStephen Dolan <mu@netsoc.tcd.ie>2019-03-22 12:22:14 +0000
committerGitHub <noreply@github.com>2019-03-22 12:22:14 +0000
commitf495bfb7cbc78fa4fecbcceb7ca2942582fc07a4 (patch)
treeb069dbb1b9c83e62522673454c235aeea9b2845c /tools
parent6db4eadc5ef2f134962be2c058366de2d1ce28b1 (diff)
parent9acd54e668e5bb7e7225d1c84192876c1ede83ad (diff)
downloadocaml-f495bfb7cbc78fa4fecbcceb7ca2942582fc07a4.tar.gz
Merge pull request #8514 from stedolan/boot-ocamlc-opt
Use boot/ocamlc.opt for building, if available.
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/Makefile b/tools/Makefile
index 5501ac2751..b078df22f4 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -26,7 +26,6 @@ endef
$(foreach i,BINDIR LIBDIR STUBLIBDIR MANDIR,$(eval $(shellquote)))
endif
-CAMLRUN ?= $(ROOTDIR)/boot/ocamlrun
DESTDIR ?=
# Setup GNU make variables storing per-target source and target,
# a list of installed tools, and a function to quote a filename for
@@ -73,7 +72,7 @@ $(eval $(call \
byte_and_opt_,$(subst $$,$$$$,$1),$(subst $$,$$$$,$2),$(subst $$,$$$$,$3)))
endef
-CAMLC = $(CAMLRUN) $(ROOTDIR)/boot/ocamlc -g -nostdlib -I $(ROOTDIR)/boot \
+CAMLC = $(BOOT_OCAMLC) -g -nostdlib -I $(ROOTDIR)/boot \
-use-prims $(ROOTDIR)/runtime/primitives -I $(ROOTDIR)
CAMLOPT = $(CAMLRUN) $(ROOTDIR)/ocamlopt -g -nostdlib -I $(ROOTDIR)/stdlib
CAMLLEX = $(CAMLRUN) $(ROOTDIR)/boot/ocamllex
@@ -427,7 +426,7 @@ clean::
clean::
rm -f *.cmo *.cmi *.cma *.dll *.so *.lib *.a
-CAMLDEP=$(CAMLRUN) $(ROOTDIR)/boot/ocamlc -depend
+CAMLDEP=$(BOOT_OCAMLC) -depend
DEPFLAGS=-slash
DEPINCLUDES=$(INCLUDES)
depend: beforedepend